Skip to content
Merged
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
3 changes: 3 additions & 0 deletions features/command.feature
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ Feature: WP-CLI Commands
"""
<?php
class Foo_Class extends WP_CLI_Command {
protected $prefix;

public function __construct( $prefix ) {
$this->prefix = $prefix;
Expand Down Expand Up @@ -478,6 +479,7 @@ Feature: WP-CLI Commands
"""
<?php
class Foo_Class {
protected $message;

public function __construct( $message ) {
$this->message = $message;
Expand Down Expand Up @@ -1119,6 +1121,7 @@ Feature: WP-CLI Commands
"""
<?php
class Foo_Class {
protected $message;

public function __construct( $message ) {
$this->message = $message;
Expand Down
7 changes: 6 additions & 1 deletion features/requests.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Feature: Requests integration with both v1 and v2

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

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

When I run `wp core version`
Expand Down