Skip to content

Commit

Permalink
Fix the (hopefully) last failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 5, 2024
1 parent 5ddefca commit 1f40aaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Stache/Stores/AssetContainersStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Statamic\Facades\Path;
use Statamic\Stache\Stache;
use Statamic\Stache\Stores\AssetContainersStore;
use Statamic\Stache\Stores\UsersStore;
use Tests\TestCase;

class AssetContainersStoreTest extends TestCase
Expand Down Expand Up @@ -111,6 +112,7 @@ public function it_saves_to_disk()
// irrelevant for this test but gets called during saving
Facades\Stache::shouldReceive('shouldUpdateIndexes')->andReturnTrue();
Facades\Stache::shouldReceive('duplicates')->andReturn(optional());
Facades\Stache::shouldReceive('store')->with('users')->andReturn((new UsersStore((new Stache)->sites(['en']), app('files')))->directory($this->tempDir));

$container = Facades\AssetContainer::make('new')
->title('New Container');
Expand Down

0 comments on commit 1f40aaa

Please sign in to comment.