From 20fd6883f8eeef8198006bf39f8901c43940403c Mon Sep 17 00:00:00 2001 From: Garion Herman Date: Mon, 26 Oct 2020 14:12:56 +1300 Subject: [PATCH] FIX Correct paths for fixtures in LibraryTest --- tests/Methods/LibraryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Methods/LibraryTest.php b/tests/Methods/LibraryTest.php index f375e39..a54cf18 100644 --- a/tests/Methods/LibraryTest.php +++ b/tests/Methods/LibraryTest.php @@ -12,7 +12,7 @@ class LibraryTest extends TestCase */ public function testResourcesDir($expected, $projectPath) { - $path = __DIR__ . '/fixtures/projects/' . $projectPath; + $path = __DIR__ . '/../fixtures/projects/' . $projectPath; $lib = new Library($path, 'vendor/silverstripe/skynet'); $this->assertEquals($expected, $lib->getResourcesDir()); } @@ -29,7 +29,7 @@ public function resourcesDirProvider() public function testInvalidResourceDir() { $this->expectException(\LogicException::class); - $path = __DIR__ . '/fixtures/projects/ss44InvalidResourcesDir'; + $path = __DIR__ . '/../fixtures/projects/ss44InvalidResourcesDir'; $lib = new Library($path, 'vendor/silverstripe/skynet'); $lib->getResourcesDir(); }