File: Skip-part-of-RoutingTest-testGetDispatcher.patch

package info (click to toggle)
phpmyadmin 4%3A5.2.1%2Bdfsg-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 131,332 kB
  • sloc: javascript: 212,681; php: 168,094; xml: 18,098; sql: 504; sh: 274; makefile: 205; python: 199
file content (28 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download
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.