Skip to content

Commit

Permalink
Fix some paths
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 14, 2023
1 parent d5f5a55 commit d417e87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
"autoload-dev": {
"psr-4": {
"WordPress\\Plugin_Check\\Test_Data\\": "tests/phpunit/testdata",
"WordPress\\Plugin_Check\\Test_Data\\": "tests/phpunit/testdata/Checks",
"WordPress\\Plugin_Check\\Test_Utils\\": "tests/phpunit/utils",
"WordPress\\Plugin_Check\\Behat_Utils\\": "tests/behat/includes"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/Checker/AJAX_Runner_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function ( $checks ) {

$this->assertIsCallable( $cleanup );

// Assert the Universal_Runtume_Preparation was run.
// Assert the Universal_Runtime_Preparation was run.
$this->assertTrue( has_filter( 'option_active_plugins' ) );
$this->assertTrue( has_filter( 'default_option_active_plugins' ) );
$this->assertTrue( has_filter( 'stylesheet' ) );
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/utils/Traits/With_Mock_Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function () {
WP_Filesystem();

// Simulate that the original object-cache.copy.php file exists.
$wp_filesystem->put_contents( WP_PLUGIN_CHECK_PLUGIN_DIR_PATH . 'drop-ins/object-cache.copy.php', file_get_contents( WP_PLUGIN_CHECK_PLUGIN_DIR_PATH . 'drop-ins/object-cache.copy.php' ) );
$wp_filesystem->put_contents( TESTS_PLUGIN_DIR . '/drop-ins/object-cache.copy.php', file_get_contents( TESTS_PLUGIN_DIR . '/drop-ins/object-cache.copy.php' ) );
}

/**
Expand All @@ -59,6 +59,6 @@ function () {
WP_Filesystem();

// Simulate that the original object-cache.copy.php file exists.
$wp_filesystem->put_contents( WP_PLUGIN_CHECK_PLUGIN_DIR_PATH . 'drop-ins/object-cache.copy.php', file_get_contents( WP_PLUGIN_CHECK_PLUGIN_DIR_PATH . 'drop-ins/object-cache.copy.php' ) );
$wp_filesystem->put_contents( TESTS_PLUGIN_DIR . '/drop-ins/object-cache.copy.php', file_get_contents( TESTS_PLUGIN_DIR . '/drop-ins/object-cache.copy.php' ) );
}
}

0 comments on commit d417e87

Please sign in to comment.