Fixed tests adding wp_normalize_path() mocks.
This commit is contained in:
1 parent
1f85d65b9b
commit
5ee99cddd4
3 files changed
+22
-1
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Rarst\Laps\Tests;
|
||||
|
||||
use Brain\Monkey\Functions;
|
||||
use Pimple\ServiceProviderInterface;
|
||||
use Rarst\Laps\Provider\Bootable_Provider_Interface;
|
||||
|
||||
@@ -24,6 +25,12 @@ class PluginTest extends LapsTestCase {
|
||||
->method( 'boot' )
|
||||
->with( $container );
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
define( 'ABSPATH', '/wp' );
|
||||
define( 'WP_CONTENT_DIR', '/wp-content/' );
|
||||
}
|
||||
Functions\expect( 'wp_normalize_path' )->zeroOrMoreTimes()->andReturnFirstArg();
|
||||
|
||||
$container->run();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user