Skip to content

Commit 35397a5

Browse files
committed
Adapt tests
1 parent a46351c commit 35397a5

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

features/core-update.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Feature: Update WordPress core
3535
@less-than-php-7
3636
Scenario: Update to the latest minor release
3737
Given a WP install
38+
And I try `wp theme install twentytwenty --activate`
3839

3940
When I run `wp core download --version=3.7.9 --force`
4041
Then STDOUT should not be empty

features/core.feature

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@ Feature: Manage WordPress installation
212212
213213
Scenario: Install multisite from scratch, with MULTISITE already set in wp-config.php
214214
Given a WP multisite install
215+
And a disable_default_scripts.php file:
216+
"""
217+
<?php
218+
WP_CLI::add_wp_hook( 'init', static function () {
219+
remove_action( 'wp_default_scripts', 'wp_default_scripts' );
220+
} );
221+
"""
215222
And I run `wp db reset --yes`
216223
217224
When I try `wp core is-installed`
@@ -222,7 +229,7 @@ Feature: Manage WordPress installation
222229
WordPress database error Table
223230
"""
224231
225-
When I run `wp core multisite-install --title=Test --admin_user=wpcli --admin_email=admin@example.com --admin_password=1`
232+
When I run `wp core multisite-install --title=Test --admin_user=wpcli --admin_email=admin@example.com --admin_password=1 --require=disable_default_scripts.php`
226233
Then STDOUT should not be empty
227234
228235
When I run `wp eval 'echo $GLOBALS["current_site"]->domain;'`

0 commit comments

Comments
 (0)