diff --git a/doc/globalinstall.rst b/doc/globalinstall.rst index de233b2a..ace17f05 100644 --- a/doc/globalinstall.rst +++ b/doc/globalinstall.rst @@ -83,9 +83,9 @@ Set up tests 3. Initialize behat. This creates the features folder with some basic things to get you started:: - bin/behat --init + bin/behat -c sites/default/behat-tests/behat.yml --init -4. This will generate a FeatureContext.php file that looks like: +4. This will generate a `sites/default/behat-tests/features/FeatureContext.php` file that looks like: .. literalinclude:: _static/snippets/FeatureContext.php.inc :language: php @@ -95,7 +95,7 @@ Set up tests This will make your FeatureContext.php aware of both the Drupal Extension and the Mink Extension, so you'll be able to take advantage of their drivers and step definitions and add your own custom step definitions here. - The FeatureContext.php file must be in the same directory as your behat.yml + The `features/FeatureContext.php` file must be in the same directory as your `behat.yml` file otherwise in step 5 you will get the following error: [Behat\Behat\Context\Exception\ContextNotFoundException] @@ -104,7 +104,7 @@ Set up tests 5. To ensure everything is set up appropriately, type:: - behat -dl + behat -c sites/default/behat-tests/behat.yml -dl You'll see a list of steps like the following, but longer, if you've installed everything successfully: