Skip to content

Commit

Permalink
Merge pull request #521 from jhedstrom/string-handlers
Browse files Browse the repository at this point in the history
Corresponding list handler fixes for the Drupal Driver.
  • Loading branch information
jhedstrom authored Dec 19, 2018
2 parents 9c6d78c + 5047552 commit 9df20de
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
13 changes: 7 additions & 6 deletions features/field_handlers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Feature: FieldHandlers
| field_post_reference | Page one, Page two |
| field_post_date | 2015-02-08 17:45:00 |
| field_post_links | Link 1 - http://example.com, Link 2 - http://example.com |
| field_post_select | One, Two |
| field_post_select | Select value one, Select value two |
| field_post_address | country: BE - locality: Brussel - thoroughfare: Louisalaan 1 - postal_code: 1000 |
Then I should see "Post title"
And I should see "PLACEHOLDER BODY"
Expand All @@ -28,8 +28,9 @@ Feature: FieldHandlers
And I should see "Sunday, February 8, 2015"
And I should see the link "Link 1"
And I should see the link "Link 2"
And I should see "One"
And I should see "Two"
And I should see "Select value one"
And I should see "Select value two"
And I should not see "Select value three"
And I should see "Belgium"
And I should see "Brussel"
And I should see "1000"
Expand All @@ -52,15 +53,15 @@ Feature: FieldHandlers
| reference | Page one, Page two |
| date | 2015-02-08 17:45:00 |
| links | Link 1 - http://example.com, Link 2 - http://example.com |
| select | One, Two |
| select | Select value one, Select value two |
| address | country: BE - locality: Brussel - thoroughfare: Louisalaan 1 - postal_code: 1000 |
Then I should see "Page one"
And I should see "Page two"
And I should see "Sunday, February 8, 2015"
And I should see the link "Link 1"
And I should see the link "Link 2"
And I should see "One"
And I should see "Two"
And I should see "Select value one"
And I should see "Select value two"
And I should see "Belgium"
And I should see "Brussel"
And I should see "1000"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ function behat_test_field_default_field_bases() {
'module' => 'list',
'settings' => array(
'allowed_values' => array(
1 => 'One',
2 => 'Two',
3 => 'Three',
1 => 'Select value one',
2 => 'Select value two',
3 => 'Select value three',
),
'allowed_values_function' => '',
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ settings:
allowed_values:
-
value: '1'
label: One
label: Select value one
-
value: '2'
label: Two
label: Select value two
-
value: '3'
label: Three
label: Select value three
allowed_values_function: ''
module: options
locked: false
cardinality: 1
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false

0 comments on commit 9df20de

Please sign in to comment.