Skip to content

Commit

Permalink
Debug: Remove WP CLI logger
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Jan 18, 2024
1 parent fb95cfa commit ce8771c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ jobs:
- php: '7.0'
wp: '6.3'
coverage: false
phpunit: '7'
phpunit: '6'

steps:
- name: Checkout
Expand Down
12 changes: 6 additions & 6 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ function pwa_unit_test_load_plugin_file() {
define( 'WP_CLI_ROOT', TESTS_PLUGIN_DIR . '/vendor/wp-cli/wp-cli' );
define( 'WP_CLI_VENDOR_DIR', TESTS_PLUGIN_DIR . '/vendor' );

if ( file_exists( WP_CLI_ROOT . '/php/utils.php' ) ) {
require_once WP_CLI_ROOT . '/php/utils.php';
WP_CLI\Utils\load_dependencies();
// if ( file_exists( WP_CLI_ROOT . '/php/utils.php' ) ) {
// require_once WP_CLI_ROOT . '/php/utils.php';

Check failure on line 71 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

Spaces must be used for mid-line alignment; tabs are not allowed

Check failure on line 71 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

Expected 1 space before comment text but found 2; use block comment if you need indentation
// WP_CLI\Utils\load_dependencies();

Check failure on line 72 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

Spaces must be used for mid-line alignment; tabs are not allowed

Check failure on line 72 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

Expected 1 space before comment text but found 2; use block comment if you need indentation

Check failure on line 72 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

Inline comments must end in full-stops, exclamation marks, or question marks

$logger = new WP_CLI\Loggers\Regular( true );
WP_CLI::set_logger( $logger );
}
// $logger = new WP_CLI\Loggers\Regular( true );

Check warning on line 74 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

This comment is 49% valid code; is this commented out code?

Check failure on line 74 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

Spaces must be used for mid-line alignment; tabs are not allowed

Check failure on line 74 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

Expected 1 space before comment text but found 2; use block comment if you need indentation
// WP_CLI::set_logger( $logger );

Check failure on line 75 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

Spaces must be used for mid-line alignment; tabs are not allowed

Check failure on line 75 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / Lint: PHP

Expected 1 space before comment text but found 2; use block comment if you need indentation
// }

// Start up the WP testing environment.
require $_test_root . '/includes/bootstrap.php';

0 comments on commit ce8771c

Please sign in to comment.