]> git.mxchange.org Git - friendica.git/commitdiff
Add new test
authorPhilipp Holzer <admin@philipp.info>
Sun, 14 Apr 2019 14:20:12 +0000 (16:20 +0200)
committerPhilipp Holzer <admin@philipp.info>
Sun, 14 Apr 2019 14:20:12 +0000 (16:20 +0200)
tests/src/Util/BasePathTest.php

index c31adb079e0d888c94e86c42e354241a02be37f3..3c619255cfe959c419760eedb9d7d4c9d778e437 100644 (file)
@@ -40,6 +40,14 @@ class BasePathTest extends MockedTest
                                ],
                                'input' => 'config',
                                'output' => dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'config',
+                       ],
+                       'no_overwrite_if_invalid' => [
+                               'server' => [
+                                       'DOCUMENT_ROOT' => '/nopopop',
+                                       'PWD' => dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'config',
+                               ],
+                               'input' => '/noatgawe22fafa',
+                               'output' => dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'config',
                        ]
                ];
        }