Posted by clemens.tolboom on September 2, 2015 at 8:17am
We like to test Organic Group and their Content but are puzzled how to create related content.
Reading http://www.grasmash.com/article/behat-steps-organic-groups gives some clues but it's for Behat 2 and we did not manage to get that translated to Behat 3 yet.
Thinking about this basic need makes us wonder whether every site team has to add these steps themselves to their own context?
What would be the best way to share steps through the contrib modules?
Comments
I can't speak to OG, but regarding sharing steps...
I can speak to OG, but regarding sharing steps:
The best way would be to get the context in a og.behat.inc file inside the 'og' module! The Drupal behat extension can search your Drupal installation for modules that provide steps in this way, so that anyone using 'og' automatically has the OG steps available.
So, someone should port those to Behat 3 and submit a patch in the 'og' issue queue!
@dsnopek thanks for the
@dsnopek thanks for the feedback.
We are getting more and more clues to convert those steps. It's quite a messy road :-(
That og.behat.inc is nice. Is has some documentation on https://behat-drupal-extension.readthedocs.org/en/3.0/subcontexts.html and I found an example in https://www.drupal.org/node/1932698
I have no a 'empty' og.behat.inc running so next hurdle is translate that to generic og lingo instead of our custom og_reg_(node-type)