Skip to content

Commit 61710a9

Browse files
committed
windows paths
1 parent aa2a8e7 commit 61710a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/TestCase.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Encryption\Encrypter;
66
use Illuminate\Foundation\Testing\RefreshDatabase;
77
use Statamic\Facades\Blueprint;
8+
use Statamic\Facades\Path;
89
use Statamic\Stache\Stores\UsersStore;
910
use Statamic\Statamic;
1011
use Statamic\Testing\AddonTestCase;
@@ -23,6 +24,13 @@ protected function setUp(): void
2324
{
2425
parent::setUp();
2526

27+
if (isset($uses[PreventsSavingStacheItemsToDisk::class])) {
28+
$reflector = new ReflectionClass($this->addonServiceProvider);
29+
$this->fakeStacheDirectory = Path::resolve(dirname($reflector->getFileName()).'/../tests/__fixtures__/dev-null');
30+
31+
$this->preventSavingStacheItemsToDisk();
32+
}
33+
2634
$this->loadMigrationsFrom(__DIR__.'/__fixtures__/database/migrations');
2735
$this->runLaravelMigrations();
2836
}

0 commit comments

Comments
 (0)