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 @@ -20,7 +20,7 @@
"wp-cli/db-command": "^1.3 || ^2 || ^3",
"wp-cli/entity-command": "^1.3 || ^2 || ^3",
"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
10 changes: 8 additions & 2 deletions features/core-check-update-db.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ Feature: Check if WordPress database update is needed
}
);
"""
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""
And I run `wp core download --version=5.4 --force`
And I run `wp option update db_version 45805 --require=disable_sidebar_check.php`

Expand Down Expand Up @@ -59,7 +62,10 @@ Feature: Check if WordPress database update is needed
}
);
"""
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""
And I run `wp core download --version=6.6 --force`
And I run `wp option update db_version 57155 --require=disable_sidebar_check.php`
And I run `wp site option update wpmu_upgrade_site 57155`
Expand Down
5 changes: 4 additions & 1 deletion features/core-check-update.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ Feature: Check for more recent versions
@require-mysql
Scenario: Check for update via Version Check API
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""

When I run `wp core download --version=5.8 --force`
Then STDOUT should not be empty
Expand Down
25 changes: 20 additions & 5 deletions features/core-update-db.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ Feature: Update core's database
}
);
"""
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""
And I run `wp core download --version=5.4 --force`
And I run `wp option update db_version 45805 --require=disable_sidebar_check.php`

Expand Down Expand Up @@ -44,7 +47,10 @@ Feature: Update core's database
}
);
"""
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""
And I run `wp core download --version=5.4 --force`
And I run `wp option update db_version 45805 --require=disable_sidebar_check.php`

Expand Down Expand Up @@ -75,7 +81,10 @@ Feature: Update core's database
}
);
"""
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""
And I run `wp core download --version=5.4 --force`
And I run `wp option update db_version 45805 --require=disable_sidebar_check.php`
And I run `wp site option update wpmu_upgrade_site 45805`
Expand Down Expand Up @@ -120,7 +129,10 @@ Feature: Update core's database
}
);
"""
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""
And I run `wp core download --version=5.4 --force`
And I run `wp option update db_version 45805 --require=disable_sidebar_check.php`
And I run `wp site option update wpmu_upgrade_site 45805`
Expand Down Expand Up @@ -177,7 +189,10 @@ Feature: Update core's database
}
);
"""
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""
And I run `wp core download --version=5.4 --force`
And I run `wp option update db_version 45805 --require=disable_sidebar_check.php`
And I run `wp site option update wpmu_upgrade_site 45805`
Expand Down
45 changes: 36 additions & 9 deletions features/core-update.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ Feature: Update WordPress core
@require-mysql
Scenario: Update from a ZIP file
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""

When I run `wp core download --version=6.2 --force`
Then STDOUT should not be empty
Expand Down Expand Up @@ -35,7 +38,10 @@ Feature: Update WordPress core
@require-php-7.0
Scenario: Output in JSON format
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""

When I run `wp core download --version=6.6 --force`
Then STDOUT should not be empty
Expand All @@ -56,7 +62,10 @@ Feature: Update WordPress core
@require-php-7.0
Scenario: Output in CSV format
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""

When I run `wp core download --version=6.6 --force`
Then STDOUT should not be empty
Expand All @@ -78,7 +87,10 @@ Feature: Update WordPress core
@require-php-7.0
Scenario: Output in table format
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""

When I run `wp core download --version=6.6 --force`
Then STDOUT should not be empty
Expand All @@ -99,7 +111,10 @@ Feature: Update WordPress core
@require-mysql
Scenario: Update to the latest minor release (PHP 7.2 compatible with WP >= 4.9)
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""

When I run `wp core download --version=6.2.5 --force`
Then STDOUT should contain:
Expand Down Expand Up @@ -135,7 +150,10 @@ Feature: Update WordPress core
@require-mysql
Scenario: Core update from cache
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""
And an empty cache

When I run `wp core update --version=6.2.5 --force`
Expand Down Expand Up @@ -184,7 +202,10 @@ Feature: Update WordPress core

Scenario: Ensure cached partial upgrades aren't used in full upgrade
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""
And an empty cache
And a wp-content/mu-plugins/upgrade-override.php file:
"""
Expand Down Expand Up @@ -259,7 +280,10 @@ Feature: Update WordPress core
@less-than-php-7.3 @require-mysql
Scenario: Make sure files are cleaned up
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""

When I run `wp core update --version=4.4 --force`
Then the wp-includes/rest-api.php file should exist
Expand Down Expand Up @@ -296,7 +320,10 @@ Feature: Update WordPress core
@require-mysql
Scenario: Make sure files are cleaned up with mixed case
Given a WP install
And I try `wp theme install twentytwenty --activate`
And these installed and active themes:
"""
twentytwenty
"""

When I run `wp core update --version=5.8 --force`
Then the wp-includes/Requests/Transport/cURL.php file should exist
Expand Down
Loading