Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / features / drush.feature
1 @drushTest @drush
2 Feature: Drush-specific steps
3   In order to prove that the drush driver is working properly
4   As a developer
5   I need to be able to use the steps provided here
6
7   Scenario: drush command with text matching: drush output correct status
8     Given I run drush "st"
9     Then drush output should contain "Drupal version"
10     Then drush output should contain "Site URI"
11     Then drush output should match "/.*Site\sURI\s+:.*/"
12     Then drush output should contain "Database driver"
13     Then drush output should contain "Successful"
14     Then drush output should not contain "NonExistantWord"
15
16   Scenario: drush command with arguments: re-enable toolbar
17     Given I run drush "en" "toolbar -y"
18       And I run drush "en" "toolbar -y"
19     Then drush output should contain "toolbar is already enabled."
20
21   Scenario: Create and view a node with fields using the Drush driver
22     Given I am viewing an "Article":
23     | title | My article with fields! |
24     | body  | A placeholder           |
25     Then I should see the heading "My article with fields!"
26     And I should see the text "A placeholder"