1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: William Desportes <williamdes@wdes.fr>
Date: Wed, 8 Feb 2023 09:16:23 +0100
Subject: Skip part of RoutingTest::testGetDispatcher as it writes the tree
Origin: vendor
Forwarded: not-needed
---
test/classes/RoutingTest.php | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/classes/RoutingTest.php b/test/classes/RoutingTest.php
index 19b81dd..06d7423 100644
--- a/test/classes/RoutingTest.php
+++ b/test/classes/RoutingTest.php
@@ -31,6 +31,13 @@ class RoutingTest extends AbstractTestCase
$invalidCacheFilename = TEST_PATH . 'test/test_data/routes/routes-invalid.cache.txt';
$GLOBALS['cfg']['environment'] = null;
+
+ $dispatcher = Routing::getDispatcher();
+ $this->assertInstanceOf(Dispatcher::class, $dispatcher);
+ $this->assertSame($expected, $dispatcher->dispatch('GET', '/'));
+
+ $this->markTestIncomplete('Disabled because the cache folder may not be writable');
+
$this->assertDirectoryIsWritable(CACHE_DIR);
// Valid cache file.
|