c8f5d2a0ef7ac2cc1b97fb2b53773b13e955be5d
[yaffs-website] / vendor / drupal / drupal-extension / doc / drupalapi.rst
1 Drupal API Driver
2 =================
3
4 The Drupal API Driver is the fastest and the most powerful of the three
5 drivers. Its biggest limitation is that the tests must run on the same server
6 as the Drupal site.
7
8 Enable the Drupal API Driver
9 ----------------------------
10 To enable the Drupal API driver, edit the behat.yml file, change the api_driver
11 to drupal and add the path to the local Drupal installation as shown below:
12
13 .. literalinclude:: _static/snippets/behat-api.yml
14    :language: php
15    :linenos:
16    :emphasize-lines: 15,18-19
17
18 .. note:: 
19    It's fine to leave the information for the drush driver in the file. It's 
20    the api_driver value that declares which setting will be used for scenarios 
21    tagged @api.
22
23 Using this driver, you gain the ability to use all the steps in the 
24 examples below (and more).
25
26 .. literalinclude::  _static/snippets/api.feature
27    :language: gherkin
28    :linenos:
29    :emphasize-lines: 1