Fix tests
Some checks failed
timw4mail/HummingBirdAnimeClient/pipeline/head There was a failure building this commit
Some checks failed
timw4mail/HummingBirdAnimeClient/pipeline/head There was a failure building this commit
This commit is contained in:
parent
bc50ab3e0c
commit
4a51c6419f
@ -33,7 +33,7 @@ class AnimeClientTestCase extends TestCase {
|
||||
use MatchesSnapshots;
|
||||
|
||||
// Test directory constants
|
||||
public const ROOT_DIR = ROOT_DIR;
|
||||
public const ROOT_DIR = AC_TEST_ROOT_DIR;
|
||||
public const SRC_DIR = SRC_DIR;
|
||||
public const TEST_DATA_DIR = __DIR__ . '/test_data';
|
||||
public const TEST_VIEW_DIR = __DIR__ . '/test_views';
|
||||
@ -60,7 +60,7 @@ class AnimeClientTestCase extends TestCase {
|
||||
|
||||
$config_array = [
|
||||
'asset_path' => '/assets',
|
||||
'img_cache_path' => _dir(ROOT_DIR, 'public/images'),
|
||||
'img_cache_path' => _dir(self::ROOT_DIR, 'public/images'),
|
||||
'data_cache_path' => _dir(self::TEST_DATA_DIR, 'cache'),
|
||||
'cache' => [
|
||||
'driver' => 'null',
|
||||
|
@ -27,7 +27,7 @@ use Laminas\Diactoros\ServerRequestFactory;
|
||||
*/
|
||||
class IonTestCase extends TestCase {
|
||||
// Test directory constants
|
||||
public const ROOT_DIR = ROOT_DIR;
|
||||
public const ROOT_DIR = AC_TEST_ROOT_DIR;
|
||||
public const SRC_DIR = SRC_DIR;
|
||||
public const TEST_DATA_DIR = __DIR__ . '/test_data';
|
||||
public const TEST_VIEW_DIR = __DIR__ . '/test_views';
|
||||
|
@ -10,8 +10,8 @@ if ($timezone === '' || $timezone === FALSE)
|
||||
ini_set('date.timezone', 'GMT');
|
||||
}
|
||||
|
||||
define('ROOT_DIR', dirname(__DIR__) . '/');
|
||||
define('SRC_DIR', ROOT_DIR . 'src/');
|
||||
define('AC_TEST_ROOT_DIR', dirname(__DIR__) . '/');
|
||||
define('SRC_DIR', AC_TEST_ROOT_DIR . 'src/');
|
||||
define('TEST_DIR', __DIR__ . '/');
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@ -20,7 +20,7 @@ define('TEST_DIR', __DIR__ . '/');
|
||||
|
||||
require_once TEST_DIR . 'AnimeClient/AnimeClientTestCase.php';
|
||||
require_once TEST_DIR . '/Ion/IonTestCase.php';
|
||||
require_once ROOT_DIR . 'vendor/autoload.php';
|
||||
require_once AC_TEST_ROOT_DIR . 'vendor/autoload.php';
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Ini Settings
|
||||
|
Loading…
Reference in New Issue
Block a user