mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 17:23:55 +01:00
32 lines
780 B
Plaintext
32 lines
780 B
Plaintext
|
<?php
|
||
|
if ( ! defined( 'PROJECT' ) ) {
|
||
|
define( 'PROJECT', __DIR__ . '/includes/' );
|
||
|
}
|
||
|
|
||
|
if ( ! defined( 'TTL_DIR' ) ) {
|
||
|
define( 'TTL_DIR', __DIR__ . '/' );
|
||
|
}
|
||
|
|
||
|
// Place any additional bootstrapping requirements here for PHP Unit.
|
||
|
if ( ! defined( 'WP_LANG_DIR' ) ) {
|
||
|
define( 'WP_LANG_DIR', 'lang_dir' );
|
||
|
}
|
||
|
if ( ! defined( 'TTL_PATH' ) ) {
|
||
|
define( 'TTL_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();
|