Skip to content

Commit

Permalink
Introduce interface
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusmoore committed Sep 12, 2024
1 parent c7ae9d9 commit 5c2660b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions tests/Concerns/TestsPermissionsRequirement.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Tests\Concerns;

interface TestsPermissionsRequirement
{
public function testRequiresPermission();
}
5 changes: 3 additions & 2 deletions tests/Feature/Accessories/Api/DeleteAccessoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
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();

Expand Down

0 comments on commit 5c2660b

Please sign in to comment.