Skip to content

Commit ee9daf5

Browse files
committed
Test the PageCacheTrait.
1 parent c18b940 commit ee9daf5

24 files changed

+134
-17
lines changed

behat.yml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ default:
66
contexts:
77
- DrupalTest\BehatTraits\Context\BrowserCapabilityDetectionContext
88
- DrupalTest\BehatTraits\Context\EntityContext
9+
- DrupalTest\BehatTraits\Context\PageCacheContext
910
- Drupal\DrupalExtension\Context\MinkContext
1011
- Drupal\DrupalExtension\Context\DrupalContext
1112
extensions:

tests/config/sync/block.block.stark_admin.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ _core:
1313
id: stark_admin
1414
theme: stark
1515
region: sidebar_first
16-
weight: 1
16+
weight: -1
1717
provider: null
1818
plugin: 'system_menu_block:admin'
1919
settings:
@@ -23,4 +23,5 @@ settings:
2323
label_display: visible
2424
level: 1
2525
depth: 0
26+
expand_all_items: false
2627
visibility: { }

tests/config/sync/block.block.stark_login.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _core:
1111
id: stark_login
1212
theme: stark
1313
region: sidebar_first
14-
weight: 0
14+
weight: -3
1515
provider: null
1616
plugin: user_login_block
1717
settings:

tests/config/sync/block.block.stark_tools.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ _core:
1313
id: stark_tools
1414
theme: stark
1515
region: sidebar_first
16-
weight: 0
16+
weight: -4
1717
provider: null
1818
plugin: 'system_menu_block:tools'
1919
settings:
@@ -23,4 +23,5 @@ settings:
2323
label_display: visible
2424
level: 1
2525
depth: 0
26+
expand_all_items: false
2627
visibility: { }
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
uuid: 1a65b0b4-a306-49a8-a499-4d4caa313d26
2+
langcode: en
3+
status: true
4+
dependencies:
5+
config:
6+
- system.menu.account
7+
module:
8+
- system
9+
- user
10+
theme:
11+
- stark
12+
id: useraccountmenu
13+
theme: stark
14+
region: sidebar_first
15+
weight: -2
16+
provider: null
17+
plugin: 'system_menu_block:account'
18+
settings:
19+
id: 'system_menu_block:account'
20+
label: 'User account menu'
21+
provider: system
22+
label_display: visible
23+
level: 1
24+
depth: 0
25+
expand_all_items: false
26+
visibility:
27+
user_role:
28+
id: user_role
29+
roles:
30+
authenticated: authenticated
31+
negate: false
32+
context_mapping:
33+
user: '@user.current_user_context:current_user'

tests/config/sync/core.entity_form_display.node.blog_post.default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ content:
3434
match_operator: CONTAINS
3535
size: 60
3636
placeholder: ''
37+
match_limit: 10
3738
third_party_settings: { }
3839
type: entity_reference_autocomplete
3940
region: content
@@ -73,6 +74,7 @@ content:
7374
match_operator: CONTAINS
7475
size: 60
7576
placeholder: ''
77+
match_limit: 10
7678
region: content
7779
third_party_settings: { }
7880
hidden: { }

tests/config/sync/core.entity_form_display.node.news.default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ content:
3434
match_operator: CONTAINS
3535
size: 60
3636
placeholder: ''
37+
match_limit: 10
3738
third_party_settings: { }
3839
type: entity_reference_autocomplete
3940
region: content
@@ -73,6 +74,7 @@ content:
7374
match_operator: CONTAINS
7475
size: 60
7576
placeholder: ''
77+
match_limit: 10
7678
region: content
7779
third_party_settings: { }
7880
hidden: { }

tests/config/sync/core.entity_view_display.node.blog_post.teaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ content:
2727
settings: { }
2828
third_party_settings: { }
2929
region: content
30-
hidden: { }
30+
hidden:
31+
field_tags: true

tests/config/sync/core.entity_view_display.node.news.teaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ content:
2727
settings: { }
2828
third_party_settings: { }
2929
region: content
30-
hidden: { }
30+
hidden:
31+
field_tags: true

tests/config/sync/field.field.node.blog_post.body.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ default_value: { }
1919
default_value_callback: ''
2020
settings:
2121
display_summary: true
22+
required_summary: false
2223
field_type: text_with_summary

0 commit comments

Comments
 (0)