Skip to content

Commit

Permalink
Added ECK config for D9 fixture.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Skrypnyk committed Aug 9, 2021
1 parent a936cdc commit e525acf
Show file tree
Hide file tree
Showing 14 changed files with 236 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/behat/features/behatcli.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/features/d7.watchdog.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 4 additions & 3 deletions tests/behat/features/d8.eck.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@d8
@d8 @d9
Feature: Check that EckTrait works for D8

Background:
Expand All @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions tests/behat/features/d8.file.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions tests/behat/fixtures/d9/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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: { }
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions tests/behat/fixtures/d9/config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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: ''
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e525acf

Please sign in to comment.