diff --git a/tests/behat/features/behatcli.feature b/tests/behat/features/behatcli.feature index 6bfa009d..ea58282a 100644 --- a/tests/behat/features/behatcli.feature +++ b/tests/behat/features/behatcli.feature @@ -5,9 +5,9 @@ Feature: Behat CLI context by running Behat through CLI. - Assert that BehatCliContext context itself can be bootstrapped by Behat, - including failed runs assertions. + including failed runs assertions. - Assert that DrupalContext can be autoloaded by Behat and that DrupalContext - can bootstrap Drupal site. + can bootstrap Drupal site. - Assert that DrupalSteps trait can be autoloaded by Behat Background: diff --git a/tests/behat/features/d7.watchdog.feature b/tests/behat/features/d7.watchdog.feature index 04682500..ca4d89f2 100644 --- a/tests/behat/features/d7.watchdog.feature +++ b/tests/behat/features/d7.watchdog.feature @@ -20,4 +20,4 @@ Feature: Check that WatchdogTrait works for D7 @api @error Scenario: Assert that watchdog track errors with level above threshold - Given set Drupal7 watchdog error level 4 + Given set Drupal7 watchdog error level 4 diff --git a/tests/behat/features/d8.eck.feature b/tests/behat/features/d8.eck.feature index 874bba75..e4978226 100644 --- a/tests/behat/features/d8.eck.feature +++ b/tests/behat/features/d8.eck.feature @@ -1,4 +1,4 @@ -@d8 +@d8 @d9 Feature: Check that EckTrait works for D8 Background: @@ -11,8 +11,9 @@ Feature: Check that EckTrait works for D8 | name | | T2 | And test_bundle test_entity_type entities: - | title | field_test_text | field_test_reference | - | [TEST] ECK Entity | Test text field | T2 | + | title | field_test_text | field_test_reference | + | [TEST] ECK Entity | Test text field | T2 | + @api Scenario: Assert "When I edit :bundle :entity_type with title :label" When I edit test_bundle test_entity_type with title "[TEST] ECK Entity" diff --git a/tests/behat/features/d8.file.feature b/tests/behat/features/d8.file.feature index a71861c4..b732f05c 100644 --- a/tests/behat/features/d8.file.feature +++ b/tests/behat/features/d8.file.feature @@ -5,10 +5,10 @@ Feature: Check that FileTrait works for D8 Scenario: Assert "Given managed file:" When I am logged in as a user with the "administrator" role Given managed file: - | path | - | example_document.pdf | - | example_image.png | - | example_audio.mp3 | + | path | + | example_document.pdf | + | example_image.png | + | example_audio.mp3 | And "example_document.pdf" file object exists And "example_image.png" file object exists And "example_audio.mp3" file object exists diff --git a/tests/behat/fixtures/d9/composer.json b/tests/behat/fixtures/d9/composer.json index d846e695..9e0f7418 100644 --- a/tests/behat/fixtures/d9/composer.json +++ b/tests/behat/fixtures/d9/composer.json @@ -7,6 +7,7 @@ "drupal/coffee": "^1", "drupal/core-composer-scaffold": "^9", "drupal/core-recommended": "^9", + "drupal/eck": "^1.0@beta", "drupal/paragraphs": "^1.9", "drupal/pathauto": "^1.8", "drupal/scheduled_transitions": "^2.1", diff --git a/tests/behat/fixtures/d9/config/sync/core.entity_form_display.test_entity_type.test_bundle.default.yml b/tests/behat/fixtures/d9/config/sync/core.entity_form_display.test_entity_type.test_bundle.default.yml new file mode 100644 index 00000000..a34a0359 --- /dev/null +++ b/tests/behat/fixtures/d9/config/sync/core.entity_form_display.test_entity_type.test_bundle.default.yml @@ -0,0 +1,56 @@ +uuid: d9d46f52-0288-4b54-8d06-a8d56ded952d +langcode: en +status: true +dependencies: + config: + - eck.eck_type.test_entity_type.test_bundle + - field.field.test_entity_type.test_bundle.field_test_reference + - field.field.test_entity_type.test_bundle.field_test_text +id: test_entity_type.test_bundle.default +targetEntityType: test_entity_type +bundle: test_bundle +mode: default +content: + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_test_reference: + weight: 11 + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content + field_test_text: + weight: 12 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + match_limit: 10 + region: content + third_party_settings: { } +hidden: { } diff --git a/tests/behat/fixtures/d9/config/sync/core.entity_view_display.test_entity_type.test_bundle.default.yml b/tests/behat/fixtures/d9/config/sync/core.entity_view_display.test_entity_type.test_bundle.default.yml new file mode 100644 index 00000000..34aa7b7b --- /dev/null +++ b/tests/behat/fixtures/d9/config/sync/core.entity_view_display.test_entity_type.test_bundle.default.yml @@ -0,0 +1,59 @@ +uuid: 151e7270-26da-4ae2-a002-5e2925d98fee +langcode: en +status: true +dependencies: + config: + - eck.eck_type.test_entity_type.test_bundle + - field.field.test_entity_type.test_bundle.field_test_reference + - field.field.test_entity_type.test_bundle.field_test_text + module: + - user +id: test_entity_type.test_bundle.default +targetEntityType: test_entity_type +bundle: test_bundle +mode: default +content: + created: + label: hidden + type: timestamp + weight: 0 + region: content + settings: + date_format: medium + custom_date_format: '' + timezone: '' + third_party_settings: { } + field_test_reference: + weight: 1 + label: above + settings: + link: true + third_party_settings: { } + type: entity_reference_label + region: content + field_test_text: + weight: 2 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + title: + label: hidden + type: string + weight: -5 + region: content + settings: + link_to_entity: false + third_party_settings: { } + uid: + label: hidden + type: author + weight: 0 + region: content + settings: { } + third_party_settings: { } +hidden: + changed: true + search_api_excerpt: true diff --git a/tests/behat/fixtures/d9/config/sync/core.extension.yml b/tests/behat/fixtures/d9/config/sync/core.extension.yml index f60d852f..0c2e8dd2 100644 --- a/tests/behat/fixtures/d9/config/sync/core.extension.yml +++ b/tests/behat/fixtures/d9/config/sync/core.extension.yml @@ -17,6 +17,7 @@ module: dblog: 0 dynamic_entity_reference: 0 dynamic_page_cache: 0 + eck: 0 editor: 0 entity_reference_revisions: 0 field: 0 diff --git a/tests/behat/fixtures/d9/config/sync/eck.eck_entity_type.test_entity_type.yml b/tests/behat/fixtures/d9/config/sync/eck.eck_entity_type.test_entity_type.yml new file mode 100644 index 00000000..522e9f60 --- /dev/null +++ b/tests/behat/fixtures/d9/config/sync/eck.eck_entity_type.test_entity_type.yml @@ -0,0 +1,10 @@ +uuid: 2eca688a-77bc-44b2-b2e2-13ae42206692 +langcode: en +status: true +dependencies: { } +id: test_entity_type +label: 'Test entity type' +created: true +changed: true +uid: true +title: true diff --git a/tests/behat/fixtures/d9/config/sync/eck.eck_type.test_entity_type.test_bundle.yml b/tests/behat/fixtures/d9/config/sync/eck.eck_type.test_entity_type.test_bundle.yml new file mode 100644 index 00000000..2da30fc9 --- /dev/null +++ b/tests/behat/fixtures/d9/config/sync/eck.eck_type.test_entity_type.test_bundle.yml @@ -0,0 +1,9 @@ +uuid: 213e8689-5828-4583-9aef-3ee01919222a +langcode: en +status: true +dependencies: + config: + - eck.eck_entity_type.test_entity_type +type: test_bundle +name: 'test bundle' +description: '' diff --git a/tests/behat/fixtures/d9/config/sync/field.field.test_entity_type.test_bundle.field_test_reference.yml b/tests/behat/fixtures/d9/config/sync/field.field.test_entity_type.test_bundle.field_test_reference.yml new file mode 100644 index 00000000..fc3463d0 --- /dev/null +++ b/tests/behat/fixtures/d9/config/sync/field.field.test_entity_type.test_bundle.field_test_reference.yml @@ -0,0 +1,29 @@ +uuid: 4f07d462-bf67-4175-a11e-e927c3fb52ef +langcode: en +status: true +dependencies: + config: + - eck.eck_type.test_entity_type.test_bundle + - field.storage.test_entity_type.field_test_reference + - taxonomy.vocabulary.tags +id: test_entity_type.test_bundle.field_test_reference +field_name: field_test_reference +entity_type: test_entity_type +bundle: test_bundle +label: 'test reference' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + tags: tags + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/tests/behat/fixtures/d9/config/sync/field.field.test_entity_type.test_bundle.field_test_text.yml b/tests/behat/fixtures/d9/config/sync/field.field.test_entity_type.test_bundle.field_test_text.yml new file mode 100644 index 00000000..16be2748 --- /dev/null +++ b/tests/behat/fixtures/d9/config/sync/field.field.test_entity_type.test_bundle.field_test_text.yml @@ -0,0 +1,19 @@ +uuid: 3ca3001a-54d9-4995-9905-3532faaa2811 +langcode: en +status: true +dependencies: + config: + - eck.eck_type.test_entity_type.test_bundle + - field.storage.test_entity_type.field_test_text +id: test_entity_type.test_bundle.field_test_text +field_name: field_test_text +entity_type: test_entity_type +bundle: test_bundle +label: 'test text' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/tests/behat/fixtures/d9/config/sync/field.storage.test_entity_type.field_test_reference.yml b/tests/behat/fixtures/d9/config/sync/field.storage.test_entity_type.field_test_reference.yml new file mode 100644 index 00000000..5cb91c7a --- /dev/null +++ b/tests/behat/fixtures/d9/config/sync/field.storage.test_entity_type.field_test_reference.yml @@ -0,0 +1,20 @@ +uuid: 393b4d20-2e60-42a8-a677-873b996702dc +langcode: en +status: true +dependencies: + module: + - eck + - taxonomy +id: test_entity_type.field_test_reference +field_name: field_test_reference +entity_type: test_entity_type +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/tests/behat/fixtures/d9/config/sync/field.storage.test_entity_type.field_test_text.yml b/tests/behat/fixtures/d9/config/sync/field.storage.test_entity_type.field_test_text.yml new file mode 100644 index 00000000..2cbf955b --- /dev/null +++ b/tests/behat/fixtures/d9/config/sync/field.storage.test_entity_type.field_test_text.yml @@ -0,0 +1,21 @@ +uuid: 7f9237fd-7056-468a-8dc1-2b26528ea9b3 +langcode: en +status: true +dependencies: + module: + - eck +id: test_entity_type.field_test_text +field_name: field_test_text +entity_type: test_entity_type +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false