File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 55use Illuminate \Encryption \Encrypter ;
66use Illuminate \Foundation \Testing \RefreshDatabase ;
77use Statamic \Facades \Blueprint ;
8+ use Statamic \Facades \Path ;
89use Statamic \Stache \Stores \UsersStore ;
910use Statamic \Statamic ;
1011use 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 }
You can’t perform that action at this time.
0 commit comments