Skip to content

Commit 7d32edc

Browse files
authored
Merge pull request #663 from wp-cli/fix-tests-deprecations
2 parents 17e6185 + 1676eb8 commit 7d32edc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

features/command.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ Feature: WP-CLI Commands
383383
"""
384384
<?php
385385
class Foo_Class extends WP_CLI_Command {
386+
protected $prefix;
386387
387388
public function __construct( $prefix ) {
388389
$this->prefix = $prefix;
@@ -478,6 +479,7 @@ Feature: WP-CLI Commands
478479
"""
479480
<?php
480481
class Foo_Class {
482+
protected $message;
481483
482484
public function __construct( $message ) {
483485
$this->message = $message;
@@ -1119,6 +1121,7 @@ Feature: WP-CLI Commands
11191121
"""
11201122
<?php
11211123
class Foo_Class {
1124+
protected $message;
11221125
11231126
public function __construct( $message ) {
11241127
$this->message = $message;

features/requests.feature

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Feature: Requests integration with both v1 and v2
22

33
# This test downgrades to WordPress 5.8, but the SQLite plugin requires 6.0+
4-
@require-mysql
4+
# WP-CLI 2.7 causes deprecation warnings on PHP 8.2
5+
@require-mysql @less-than-php-8.2
56
Scenario: Composer stack with Requests v1
67
Given an empty directory
78
And a composer.json file:
@@ -78,6 +79,10 @@ Feature: Requests integration with both v1 and v2
7879

7980
Scenario: Current version with WordPress-bundled Requests v2
8081
Given a WP installation
82+
# Switch themes because twentytwentyfive requires a version newer than 6.2
83+
# and it would otherwise cause a fatal error further down.
84+
And I try `wp theme install twentyten`
85+
And I try `wp theme activate twentyten`
8186
And I run `wp core update --version=6.2 --force`
8287

8388
When I run `wp core version`

0 commit comments

Comments
 (0)