10-04-2026

This commit is contained in:
Kevin Adametz 2026-04-10 17:18:17 +02:00
parent 4d6b4930b2
commit 4bb89aad8c
836 changed files with 52961 additions and 5950 deletions

View file

@ -16,8 +16,8 @@ beforeEach(function () {
Role::create(['name' => 'Retailer']);
Role::create(['name' => 'Manufacturer']);
Role::create(['name' => 'Customer']);
Permission::create(['name' => 'curate products']);
Role::findByName('Admin')->givePermissionTo('curate products');
$permission = Permission::firstOrCreate(['name' => 'curate products']);
Role::findByName('Admin')->givePermissionTo($permission);
});
test('admin can view any product', function () {