Skip to content

Commit 5185e42

Browse files
committed
Adapt tests for CS changes
1 parent bd34412 commit 5185e42

File tree

5 files changed

+28
-4
lines changed

5 files changed

+28
-4
lines changed

features/scaffold-block.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Feature: WordPress block code scaffolding
6060
"""
6161
And the {PLUGIN_DIR}/blocks/the-green-mile.php file should contain:
6262
"""
63-
register_block_type( 'movies/the-green-mile', array(
63+
register_block_type( 'movies/the-green-mile', [
6464
"""
6565
And the {PLUGIN_DIR}/blocks/the-green-mile.php file should contain:
6666
"""

features/scaffold-plugin-tests.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,18 @@ Feature: Scaffold plugin unit tests
111111
"""
112112
php71-build
113113
"""
114+
And the {PLUGIN_DIR}/.circleci/config.yml file should contain:
115+
"""
116+
php72-build
117+
"""
118+
And the {PLUGIN_DIR}/.circleci/config.yml file should contain:
119+
"""
120+
php73-build
121+
"""
122+
And the {PLUGIN_DIR}/.circleci/config.yml file should contain:
123+
"""
124+
php74-build
125+
"""
114126

115127
Scenario: Scaffold plugin tests with Circle as the provider, part two
116128
Given a WP install

features/scaffold-taxonomy.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Feature: Scaffold a custom taxonomy
1919
"""
2020
And STDOUT should contain:
2121
"""
22-
$messages['fungus'] = array(
22+
$messages['fungus'] = [
2323
"""
2424
And STDOUT should contain:
2525
"""

features/scaffold-theme-tests.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,18 @@ Feature: Scaffold theme unit tests
153153
"""
154154
php71-build
155155
"""
156+
And the {THEME_DIR}/p2child/.circleci/config.yml file should contain:
157+
"""
158+
php72-build
159+
"""
160+
And the {THEME_DIR}/p2child/.circleci/config.yml file should contain:
161+
"""
162+
php73-build
163+
"""
164+
And the {THEME_DIR}/p2child/.circleci/config.yml file should contain:
165+
"""
166+
php74-build
167+
"""
156168

157169
Scenario: Scaffold theme tests with Gitlab as the provider
158170
When I run `wp scaffold theme-tests p2child --ci=gitlab`

features/scaffold.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Feature: WordPress code scaffolding
9393
When I run `wp scaffold post-type zombie`
9494
Then STDOUT should contain:
9595
"""
96-
'rest_base' => 'zombie'
96+
'rest_base' => 'zombie'
9797
"""
9898
And STDOUT should contain:
9999
"""
@@ -116,7 +116,7 @@ Feature: WordPress code scaffolding
116116
"""
117117
And STDOUT should contain:
118118
"""
119-
array( 'prefix-zombie', 'wraith' )
119+
[ 'prefix-zombie', 'wraith' ]
120120
"""
121121
And STDOUT should contain:
122122
"""

0 commit comments

Comments
 (0)