mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 17:23:55 +01:00
32 lines
826 B
Plaintext
32 lines
826 B
Plaintext
<?php
|
|
if ( ! defined( 'PROJECT' ) ) {
|
|
define( 'PROJECT', __DIR__ . '/includes/' );
|
|
}
|
|
|
|
if ( ! defined( 'WPTHEME_DIR' ) ) {
|
|
define( 'WPTHEME_DIR', __DIR__ . '/' );
|
|
}
|
|
|
|
// Place any additional bootstrapping requirements here for PHP Unit.
|
|
if ( ! defined( 'WP_LANG_DIR' ) ) {
|
|
define( 'WP_LANG_DIR', 'lang_dir' );
|
|
}
|
|
if ( ! defined( 'WPTHEME_PATH' ) ) {
|
|
define( 'WPTHEME_PATH', 'path' );
|
|
}
|
|
|
|
if ( ! file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
|
|
throw new PHPUnit_Framework_Exception(
|
|
'ERROR' . PHP_EOL . PHP_EOL .
|
|
'You must use Composer to install the test suite\'s dependencies!' . PHP_EOL
|
|
);
|
|
}
|
|
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
require_once __DIR__ . '/tests/phpunit/test-tools/TestCase.php';
|
|
|
|
WP_Mock::setUsePatchwork( true );
|
|
WP_Mock::bootstrap();
|
|
WP_Mock::tearDown();
|