Skip to content

Commit

Permalink
PHP 7.4: Collapse nested dirname() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones committed Apr 23, 2024
1 parent c1d7f63 commit 1109da9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Integration/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

use Yoast\WPTestUtils\WPIntegration;

require_once dirname( dirname( __DIR__ ) ) . '/vendor/yoast/wp-test-utils/src/WPIntegration/bootstrap-functions.php';
require_once dirname( __DIR__, 2 ) . '/vendor/yoast/wp-test-utils/src/WPIntegration/bootstrap-functions.php';

$_tests_dir = getenv( 'WP_TESTS_DIR' );

Expand All @@ -34,7 +34,7 @@
*/
function _manually_load_plugin() {
// Updated from default (__FILE__), since this bootstrap is an extra level down in tests/Integration/.
require dirname( dirname( __DIR__ ) ) . '/co-authors-plus.php';
require dirname( __DIR__, 2 ) . '/co-authors-plus.php';
}

tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
Expand Down

0 comments on commit 1109da9

Please sign in to comment.