Skip to content

Commit 995caba

Browse files
committed
fix: non-existent fixtures
1 parent c359009 commit 995caba

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

packages/drift/src/FrameworkIntegrationTestCase.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,15 @@ protected function setUp(): void
4141
{
4242
// We force forward slashes for consistency even on Windows.
4343
$this->root = normalize(realpath(__DIR__ . '/../../../'));
44-
$this->discoveryLocations = [
45-
new DiscoveryLocation('Tests\\Tempest\\Integration\\Console\\Fixtures', realpath(__DIR__ . '/../../../tests/Integration/Console/Fixtures')),
46-
new DiscoveryLocation('Tests\\Tempest\\Fixtures', realpath(__DIR__ . '/../../../tests/Fixtures')),
47-
];
44+
45+
// TODO(aidan-casey): Clean this waaaaay up.
46+
if ($consoleFixtures = realpath(__DIR__ . '/../../../tests/Integration/Console/Fixtures')) {
47+
$this->discoveryLocations[] = new DiscoveryLocation('Tests\\Tempest\\Integration\\Console\\Fixtures', $consoleFixtures);
48+
}
49+
50+
if ($fixtures = realpath(__DIR__ . '/../../../tests/Fixtures')) {
51+
$this->discoveryLocations[] = new DiscoveryLocation('Tests\\Tempest\\Fixtures', $fixtures);
52+
}
4853

4954
parent::setUp();
5055

0 commit comments

Comments
 (0)