Files
piratepoet/tests/unit/_bootstrap.php
Rostislav Wolny a460f78113 Move logger factory test to unit tests
[MAILPOET-2444]
2019-10-10 12:36:06 +01:00

24 lines
569 B
PHP

<?php
function __($text) {
return $text;
}
// Fix for mocking WPFunctions
// [PHPUnit_Framework_Exception] Use of undefined constant OBJECT - assumed 'OBJECT' (this will throw an Error in a future version of PHP)
if (!defined('OBJECT')) {
define( 'OBJECT', 'OBJECT' );
}
define('ABSPATH', '/');
define('WP_DEBUG', false);
$console = new \Codeception\Lib\Console\Output([]);
abstract class MailPoetUnitTest extends \Codeception\TestCase\Test {
protected $runTestInSeparateProcess = false;
protected $preserveGlobalState = false;
}
include '_fixtures.php';