Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"require-dev": {
"wp-cli/extension-command": "^1.2 || ^2 || ^3",
"wp-cli/wp-cli-tests": "^5"
"wp-cli/wp-cli-tests": "dev-cached-extension-installs as 5.3.99"
},
"config": {
"process-timeout": 7200,
Expand Down
5 changes: 4 additions & 1 deletion features/scaffold-block.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ Feature: WordPress block code scaffolding
And I run `wp scaffold plugin movies`
And I run `wp plugin path movies --dir`
And save STDOUT as {PLUGIN_DIR}
And I run `wp theme install twentytwelve --activate --force`
And these installed and active themes:
"""
twentytwelve --force
"""
And I run `wp theme path twentytwelve --dir`
And save STDOUT as {THEME_DIR}

Expand Down
21 changes: 15 additions & 6 deletions features/scaffold-lint.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ Feature: Lint scaffolded code
Then the return code should be 0

Scenario: Scaffold post-type and lint it
When I run `wp theme install twentytwentyone --force --activate`
And I run `wp eval 'echo STYLESHEETPATH;'`
Given these installed and active themes:
"""
twentytwentyone --force
"""
When I run `wp eval 'echo STYLESHEETPATH;'`
And save STDOUT as {STYLESHEETPATH}

And I run `wp scaffold post-type movie --theme`
Expand All @@ -38,8 +41,11 @@ Feature: Lint scaffolded code
Then the return code should be 0

Scenario: Scaffold taxonomy and lint it
When I run `wp theme install twentytwentyone --force --activate`
And I run `wp eval 'echo STYLESHEETPATH;'`
Given these installed and active themes:
"""
twentytwentyone --force
"""
When I run `wp eval 'echo STYLESHEETPATH;'`
And save STDOUT as {STYLESHEETPATH}

And I run `wp scaffold taxonomy genre --theme`
Expand All @@ -61,8 +67,11 @@ Feature: Lint scaffolded code
Then the return code should be 0

Scenario: Scaffold child theme and lint it
When I run `wp theme install twentytwentyone --force --activate`
And I run `wp theme path`
Given these installed and active themes:
"""
twentytwentyone --force
"""
When I run `wp theme path`
And save STDOUT as {THEME_DIR}

And I run `wp scaffold child-theme test-child --parent_theme=twentytwentyone`
Expand Down
5 changes: 4 additions & 1 deletion features/scaffold-theme-tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ Feature: Scaffold theme unit tests

Background:
Given a WP install
And I try `wp theme install twentytwelve --force`
And these installed themes:
"""
twentytwelve --force
"""
And I run `wp scaffold child-theme t12child --parent_theme=twentytwelve`

When I run `wp theme path`
Expand Down
Loading