mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Introduce interface
This commit is contained in:
parent
c7ae9d9dfa
commit
5c2660bd34
8
tests/Concerns/TestsPermissionsRequirement.php
Normal file
8
tests/Concerns/TestsPermissionsRequirement.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Concerns;
|
||||
|
||||
interface TestsPermissionsRequirement
|
||||
{
|
||||
public function testRequiresPermission();
|
||||
}
|
|
@ -6,11 +6,12 @@ use App\Models\Accessory;
|
|||
use App\Models\Company;
|
||||
use App\Models\User;
|
||||
use Tests\Concerns\TestsMultipleFullCompanySupport;
|
||||
use Tests\Concerns\TestsPermissionsRequirement;
|
||||
use Tests\TestCase;
|
||||
|
||||
class DeleteAccessoryTest extends TestCase implements TestsMultipleFullCompanySupport
|
||||
class DeleteAccessoryTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement
|
||||
{
|
||||
public function testPermissionRequiredToDeleteAccessory()
|
||||
public function testRequiresPermission()
|
||||
{
|
||||
$accessory = Accessory::factory()->create();
|
||||
|
||||
|
|
Loading…
Reference in a new issue