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
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions features/bootstrap.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ Feature: Bootstrap WP-CLI
And I run `composer install --working-dir={RUN_DIR}/cli-override-command --no-interaction 2>&1`

When I run `{PHAR_PATH} cli version`
Then STDOUT should contain:
"""
WP-CLI
"""
Then STDOUT should contain:
"""
WP-CLI
"""

When I run `{PHAR_PATH} --require=cli-override-command/cli.php cli version`
Then STDOUT should contain:
"""
WP-Override-CLI
"""
Then STDOUT should contain:
"""
WP-Override-CLI
"""
20 changes: 10 additions & 10 deletions features/config.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Feature: wp-config.php tests
# Only testing on MySQL because the SQLite drop-in is not added to the custom directories in this test.
@require-mysql
Scenario: __FILE__ and __DIR__ in wp-config.php don't point into the PHAR filesystem
Given a WP installation
And a new Phar with the same version
And a wp-config.php file:
"""
Given a WP installation
And a new Phar with the same version
And a wp-config.php file:
"""
<?php
define( 'DB_NAME', 'wp_cli_test' );
define( 'DB_USER', '{DB_USER}' );
Expand All @@ -24,14 +24,14 @@ Feature: wp-config.php tests
require_once( ABSPATH . 'wp-settings.php' );
"""

When I run `{PHAR_PATH} eval "echo 'WP_CONTENT_DIR => ' . WP_CONTENT_DIR;"`
Then STDOUT should not contain:
"""
When I run `{PHAR_PATH} eval "echo 'WP_CONTENT_DIR => ' . WP_CONTENT_DIR;"`
Then STDOUT should not contain:
"""
WP_CONTENT_DIR => phar://
"""

When I run `{PHAR_PATH} eval "echo 'WP_PLUGIN_DIR => ' . WP_PLUGIN_DIR;"`
Then STDOUT should not contain:
"""
When I run `{PHAR_PATH} eval "echo 'WP_PLUGIN_DIR => ' . WP_PLUGIN_DIR;"`
Then STDOUT should not contain:
"""
WP_PLUGIN_DIR => phar://
"""
2 changes: 1 addition & 1 deletion features/requests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Feature: Requests integration with both v1 and v2
Success: Installed 1 of 1 plugins.
"""

Scenario: Current version with WordPress-bundled Requests 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.
Expand Down
Loading