Skip to content

Commit

Permalink
Add TEST_PATH for out of source tests
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Jan 31, 2023
1 parent e11c385 commit 97edddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/classes/RoutingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public function testGetDispatcher(): void
{
$expected = [Dispatcher::FOUND, HomeController::class, []];
$cacheFilename = CACHE_DIR . 'routes.cache.php';
$validCacheFilename = ROOT_PATH . 'test/test_data/routes/routes-valid.cache.txt';
$invalidCacheFilename = ROOT_PATH . 'test/test_data/routes/routes-invalid.cache.txt';
$validCacheFilename = TEST_PATH . 'test/test_data/routes/routes-valid.cache.txt';
$invalidCacheFilename = TEST_PATH . 'test/test_data/routes/routes-invalid.cache.txt';
$GLOBALS['cfg']['environment'] = null;

$this->assertDirectoryIsWritable(CACHE_DIR);
Expand Down

0 comments on commit 97edddf

Please sign in to comment.