Skip to content

Commit

Permalink
FIX Correct paths for fixtures in LibraryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Garion Herman committed Oct 26, 2020
1 parent 6a15370 commit 20fd688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Methods/LibraryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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();
}
Expand Down

0 comments on commit 20fd688

Please sign in to comment.