Skip to content

Commit 0b063b4

Browse files
committed
Update tests framework so that ANSI color codes are ignored in string comparisons
1 parent d26ca67 commit 0b063b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
],
1919
"require": {
2020
"composer/semver": "^1.4 || ^2 || ^3",
21-
"wp-cli/wp-cli": "^2.5"
21+
"wp-cli/wp-cli": "^2.5.1"
2222
},
2323
"require-dev": {
2424
"wp-cli/entity-command": "^1.3 || ^2",
2525
"wp-cli/scaffold-command": "^1.2 || ^2",
26-
"wp-cli/wp-cli-tests": "^3.0.11"
26+
"wp-cli/wp-cli-tests": "^3.0.16"
2727
},
2828
"config": {
2929
"process-timeout": 7200,

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ protected function update_many( $args, $assoc_args ) {
320320
call_user_func( $this->upgrade_refresh );
321321

322322
if ( ! empty( $assoc_args['format'] ) && in_array( $assoc_args['format'], [ 'json', 'csv' ], true ) ) {
323-
$logger = new Loggers\Quiet();
323+
$logger = new Loggers\Quiet( WP_CLI::get_runner()->in_color() );
324324
WP_CLI::set_logger( $logger );
325325
}
326326

0 commit comments

Comments
 (0)