DrupalDriver icon indicating copy to clipboard operation
DrupalDriver copied to clipboard

Add support for `og_standard_reference` field type of 'Organic Groups' contrib module

Open BaluErtl opened this issue 3 years ago • 0 comments

We needed it in a client project to be able to build a hierarchical content structure in runtime. With this extra class in the namespace now Behat/Mink finds the correct handler to populate Organic Groups' entity reference field too. For example:

Given organization content:
  | title                 | status | og_audience           | author |
  | Top-level published   | 1      |                       | owner  |
  | Mid-level published   | 1      | Top-level published   | owner  |
  | Low-level published   | 1      | Mid-level published   | owner  |
  | Top-level unpublished | 0      |                       | owner  |
  | Mid-level unpublished | 0      | Top-level unpublished | owner  |
  | Low-level unpublished | 0      | Mid-level unpublished | owner  |

BaluErtl avatar Aug 09 '21 15:08 BaluErtl