X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrupal%2Fdrupal-extension%2Fdoc%2Fdrupalapi.rst;fp=vendor%2Fdrupal%2Fdrupal-extension%2Fdoc%2Fdrupalapi.rst;h=c8f5d2a0ef7ac2cc1b97fb2b53773b13e955be5d;hb=1270d9129ce8f27c9b28b10518e32132c58e0aca;hp=0000000000000000000000000000000000000000;hpb=c27c0f0cdaa3f354b1fe54a56ae7e854be6e3f68;p=yaffs-website diff --git a/vendor/drupal/drupal-extension/doc/drupalapi.rst b/vendor/drupal/drupal-extension/doc/drupalapi.rst new file mode 100644 index 000000000..c8f5d2a0e --- /dev/null +++ b/vendor/drupal/drupal-extension/doc/drupalapi.rst @@ -0,0 +1,29 @@ +Drupal API Driver +================= + +The Drupal API Driver is the fastest and the most powerful of the three +drivers. Its biggest limitation is that the tests must run on the same server +as the Drupal site. + +Enable the Drupal API Driver +---------------------------- +To enable the Drupal API driver, edit the behat.yml file, change the api_driver +to drupal and add the path to the local Drupal installation as shown below: + +.. literalinclude:: _static/snippets/behat-api.yml + :language: php + :linenos: + :emphasize-lines: 15,18-19 + +.. note:: + It's fine to leave the information for the drush driver in the file. It's + the api_driver value that declares which setting will be used for scenarios + tagged @api. + +Using this driver, you gain the ability to use all the steps in the +examples below (and more). + +.. literalinclude:: _static/snippets/api.feature + :language: gherkin + :linenos: + :emphasize-lines: 1