Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Testing/AddonTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Statamic\Testing;

use Facades\Statamic\Version;
use Illuminate\Support\Str;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
use ReflectionClass;
use Statamic\Addons\Manifest;
Expand All @@ -26,8 +25,8 @@ protected function setUp(): void
$uses = array_flip(class_uses_recursive(static::class));

if (isset($uses[PreventsSavingStacheItemsToDisk::class])) {
$reflection = new ReflectionClass($this);
$this->fakeStacheDirectory = Str::before(dirname($reflection->getFileName()), DIRECTORY_SEPARATOR.'tests').'/tests/__fixtures__/dev-null';
$reflector = new ReflectionClass($this->addonServiceProvider);
$this->fakeStacheDirectory = dirname($reflector->getFileName()).'/../tests/__fixtures__/dev-null';

$this->preventSavingStacheItemsToDisk();
}
Expand Down