fix tests

This commit is contained in:
Dennis
2022-08-17 09:53:08 +02:00
parent 37ea8aa6b0
commit ee21924253
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ use App\Models\User;
class FrontendOnlyPolicy
{
public function before(User $user): mixed
public function before(User $user)
{
if ($user->isAdmin()) {
return true;

View File

@@ -14,11 +14,11 @@ it('will generate a site system user', function () {
->systemUsers->toHaveCount(1);
expect($siteA->systemUsers->first())
->user_name->toBe('ploiio');
->user_name->toBe('ploiio-' . $siteA->id);
expect($siteB)
->systemUsers->toHaveCount(1);
expect($siteB->systemUsers->first())
->user_name->toBe('examplep');
->user_name->toBe('examplep-' . $siteB->id);
});