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
|
From: William Desportes <williamdes@wdes.fr>
Date: Sat, 5 Jun 2021 00:26:14 +0200
Subject: Fix FileListingTest and ErrorTest::testSetFile depending on the
filesystem path
Origin: vendor
Forwarded: not-needed
---
test/classes/ErrorTest.php | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/test/classes/ErrorTest.php b/test/classes/ErrorTest.php
index 3c823d8..d78a216 100644
--- a/test/classes/ErrorTest.php
+++ b/test/classes/ErrorTest.php
@@ -104,12 +104,11 @@ class ErrorTest extends AbstractTestCase
return [
[
'./ChangeLog',
- '.' . DIRECTORY_SEPARATOR . 'ChangeLog',
+ Error::relPath('.' . DIRECTORY_SEPARATOR . 'ChangeLog'),
],
[
__FILE__,
- '.' . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR
- . 'classes' . DIRECTORY_SEPARATOR . 'ErrorTest.php',
+ Error::relPath(__FILE__),
],
[
'./NONEXISTING',
|