Skip to content

Commit 134656b

Browse files
drbytegithub-actions[bot]
authored andcommitted
Fix styling
1 parent b5cd015 commit 134656b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

tests/Integration/CacheTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Illuminate\Cache\DatabaseStore;
4+
use Illuminate\Contracts\Cache\Repository;
45
use Illuminate\Support\Facades\Artisan;
56
use Illuminate\Support\Facades\DB;
67
use Spatie\Permission\Contracts\Permission;
@@ -256,7 +257,7 @@ function assertQueryCount(int $expected): void
256257
$registrar->cacheKey = $this->registrar->cacheKey;
257258
$registrar->shouldReceive('forgetCachedPermissions')->once()->andReturn(false);
258259

259-
$cacheRepository = Mockery::mock(Illuminate\Contracts\Cache\Repository::class);
260+
$cacheRepository = Mockery::mock(Repository::class);
260261
$cacheRepository->shouldReceive('has')->with($registrar->cacheKey)->andReturn(true);
261262
$registrar->shouldReceive('getCacheRepository')->once()->andReturn($cacheRepository);
262263

tests/Integration/PermissionRegistrarTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use Illuminate\Cache\ArrayStore;
4+
use Illuminate\Database\Eloquent\Collection;
35
use Illuminate\Support\Facades\DB;
46
use Spatie\Permission\Contracts\Permission as PermissionContract;
57
use Spatie\Permission\Contracts\Role as RoleContract;
@@ -174,7 +176,7 @@
174176
app(PermissionRegistrar::class)->initializeCache();
175177

176178
expect(app(PermissionRegistrar::class)->getCacheStore())
177-
->toBeInstanceOf(Illuminate\Cache\ArrayStore::class);
179+
->toBeInstanceOf(ArrayStore::class);
178180
});
179181

180182
it('retries loading permissions when another load is already in progress', function () {
@@ -188,6 +190,6 @@
188190

189191
$permissions = $registrar->getPermissions();
190192

191-
expect($permissions)->toBeInstanceOf(Illuminate\Database\Eloquent\Collection::class);
193+
expect($permissions)->toBeInstanceOf(Collection::class);
192194
expect($loadingProperty->getValue($registrar))->toBeFalse();
193195
});

0 commit comments

Comments
 (0)