-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from dawehner/drupal-6
Register Drupal 6 core classes Signed-off-by: Jonathan Hedstrom <[email protected]>
- Loading branch information
Showing
7 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@api @d6 | ||
Feature: Environment check | ||
|
||
Scenario: Frontpage | ||
Given I am not logged in | ||
And I am on the homepage | ||
Then I should see "User login" | ||
|
||
Scenario: assertAnonymousUser | ||
Given I am an anonymous user | ||
|
||
@api | ||
Scenario: assertAuthenticatedByRole | ||
Given I am logged in as a user with the "authenticated" role | ||
|
||
@api | ||
Scenario: assertAuthenticatedByRoleWithGivenFields | ||
Given I am logged in as a user with the "authenticated" role and I have the following fields: | ||
| name | test | | ||
|
||
@api | ||
Scenario: createNode | ||
Given I am viewing a story with the title "test" | ||
Then I should see "test" | ||
|
||
@api | ||
Scenario: createNodes | ||
Given article content: | ||
| title | author | status | created | | ||
| My title | Joe Editor | 1 | 2014-10-17 8:00am | | ||
When I am viewing a content with the title "My title" | ||
Then I should see "My title" | ||
|
||
@api | ||
Scenario: createTerm | ||
Given I am viewing a tags term with the name "example tag" | ||
Then I should see "example tag" | ||
|
||
@api | ||
Scenario: createUsers | ||
Given I am logged in as a user with the "administer users" permission | ||
And users: | ||
| name | mail | | ||
| user foo | foo@bar.com | | ||
| user bar | baz@bar.com | | ||
When I visit "admin/user/user" | ||
Then I should see "user foo" | ||
And I should see "user bar" | ||
|
||
@api | ||
Scenario: create node with terms. | ||
Given tags terms: | ||
| name | | ||
| test-tag | | ||
And article content: | ||
| title | status | taxonomy | | ||
| My title | 1 | test-tag | | ||
When I am on the homepage | ||
Then I should see "test-tag" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name = Behat test | ||
description = Test feature exposing basic configuration for Behat Drupal extension test. | ||
core = 6.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
/** | ||
* Implements hook_install(). | ||
*/ | ||
function behat_test_install() { | ||
$edit = array(); | ||
$edit['name'] = 'tags'; | ||
$edit['help'] = ''; | ||
taxonomy_save_vocabulary($edit); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters