Fixed tests adding wp_normalize_path() mocks.

This commit is contained in:
Andrey Savchenko committed 2018-03-19 22:44:36 +02:00
1 parent 1f85d65b9b
commit 5ee99cddd4
3 files changed
+22 -1

No files matched your search

+7
View File
@@ -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();
}
}