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

package info (click to toggle)
phpmyadmin 4%3A5.2.2-really%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 140,348 kB
  • sloc: javascript: 228,478; php: 166,896; xml: 17,847; sql: 504; sh: 275; makefile: 209; python: 205
file content (41 lines) | stat: -rw-r--r-- 1,725 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
From: William Desportes <williamdes@wdes.fr>
Date: Wed, 8 Feb 2023 09:16:23 +0100
Subject: Skip part of RoutingTest as it writes the tree

Origin: vendor
Forwarded: not-needed
---
 test/classes/RoutingTest.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/classes/RoutingTest.php b/test/classes/RoutingTest.php
index 2a421f1..6700809 100644
--- a/test/classes/RoutingTest.php
+++ b/test/classes/RoutingTest.php
@@ -37,6 +37,8 @@ class RoutingTest extends AbstractTestCase
         $GLOBALS['cfg']['environment'] = 'production';
         $_SESSION['isRoutesCacheFileValid'] = true;
 
+        $this->markTestIncomplete('Disabled because the cache folder may not be writable');
+
         self::assertDirectoryIsWritable(CACHE_DIR);
 
         $routeCollector = new RouteCollector(new RouteParserStd(), new DataGeneratorGroupCountBased());
@@ -54,6 +56,8 @@ class RoutingTest extends AbstractTestCase
         $GLOBALS['cfg']['environment'] = 'production';
         $_SESSION['isRoutesCacheFileValid'] = null;
 
+        $this->markTestIncomplete('Disabled because the cache folder may not be writable');
+
         self::assertDirectoryIsWritable(CACHE_DIR);
 
         $routeCollector = new RouteCollector(new RouteParserStd(), new DataGeneratorGroupCountBased());
@@ -74,6 +78,8 @@ class RoutingTest extends AbstractTestCase
         $GLOBALS['cfg']['environment'] = 'production';
         $_SESSION['isRoutesCacheFileValid'] = null;
 
+        $this->markTestIncomplete('Disabled because the cache folder may not be writable');
+
         self::assertDirectoryIsWritable(CACHE_DIR);
         if (file_exists(Routing::ROUTES_CACHE_FILE)) {
             self::assertTrue(unlink(Routing::ROUTES_CACHE_FILE));