Skip to content

Commit 327888c

Browse files
authored
Disable PHP 7.0 and 7.1 version switcher E2E tests (#1626)
## Motivation for the change, related issues WordPress 6.6 [dropped support](https://make.wordpress.org/core/2024/04/08/dropping-support-for-php-7-1/) for PHP 7.0 & 7.1 which caused _PHP version switcher_ [tests to start failing.](https://github.com/WordPress/wordpress-playground/actions/runs/9960731846/job/27521525518) Fixes #1621 ## Implementation details The code will now skip both PHP 7.0 and 7.1 in _PHP version switcher_ tests. ## Testing Instructions (or ideally a Blueprint) - ensure all tests pass
1 parent 83acea4 commit 327888c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/playground/website/cypress/e2e/website-ui.cy.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ describe('Playground website UI', () => {
2222
// Test all PHP versions for completeness
2323
describe('PHP version switcher', () => {
2424
SupportedPHPVersions.forEach((version) => {
25-
if (version === '7.0') {
26-
// The SQLite integration plugin uses `private const` which is not supported in PHP 7.0
27-
// @TODO: Adjust the plugin and remove this condition.
25+
/**
26+
* WordPress 6.6 dropped support for PHP 7.0 and 7.1 so we need to skip these versions.
27+
* @see https://make.wordpress.org/core/2024/04/08/dropping-support-for-php-7-1/
28+
*/
29+
if (['7.0', '7.1'].includes(version)) {
2830
return;
2931
}
3032
it('should switch PHP version to ' + version, () => {

0 commit comments

Comments
 (0)