Fix name: TestsFullMultipleCompaniesSupport

This commit is contained in:
Marcus Moore 2024-09-16 16:55:20 -07:00
parent a629df07bf
commit 3519a82ddd
No known key found for this signature in database
10 changed files with 32 additions and 32 deletions

View file

@ -0,0 +1,8 @@
<?php
namespace Tests\Concerns;
interface TestsFullMultipleCompaniesSupport
{
public function testAdheresToFullMultipleCompaniesSupportScoping();
}

View file

@ -1,8 +0,0 @@
<?php
namespace Tests\Concerns;
interface TestsMultipleFullCompanySupport
{
public function testAdheresToMultipleFullCompanySupportScoping();
}

View file

@ -5,11 +5,11 @@ namespace Tests\Feature\Accessories\Api;
use App\Models\Accessory; use App\Models\Accessory;
use App\Models\Company; use App\Models\Company;
use App\Models\User; use App\Models\User;
use Tests\Concerns\TestsMultipleFullCompanySupport; use Tests\Concerns\TestsFullMultipleCompaniesSupport;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
class DeleteAccessoriesTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement class DeleteAccessoriesTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()
{ {
@ -22,7 +22,7 @@ class DeleteAccessoriesTest extends TestCase implements TestsMultipleFullCompany
$this->assertNotSoftDeleted($accessory); $this->assertNotSoftDeleted($accessory);
} }
public function testAdheresToMultipleFullCompanySupportScoping() public function testAdheresToFullMultipleCompaniesSupportScoping()
{ {
[$companyA, $companyB] = Company::factory()->count(2)->create(); [$companyA, $companyB] = Company::factory()->count(2)->create();

View file

@ -5,11 +5,11 @@ namespace Tests\Feature\AssetMaintenances\Api;
use App\Models\AssetMaintenance; use App\Models\AssetMaintenance;
use App\Models\Company; use App\Models\Company;
use App\Models\User; use App\Models\User;
use Tests\Concerns\TestsMultipleFullCompanySupport; use Tests\Concerns\TestsFullMultipleCompaniesSupport;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
class DeleteAssetMaintenancesTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement class DeleteAssetMaintenancesTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()
{ {
@ -22,7 +22,7 @@ class DeleteAssetMaintenancesTest extends TestCase implements TestsMultipleFullC
$this->assertNotSoftDeleted($assetMaintenance); $this->assertNotSoftDeleted($assetMaintenance);
} }
public function testAdheresToMultipleFullCompanySupportScoping() public function testAdheresToFullMultipleCompaniesSupportScoping()
{ {
[$companyA, $companyB] = Company::factory()->count(2)->create(); [$companyA, $companyB] = Company::factory()->count(2)->create();

View file

@ -5,11 +5,11 @@ namespace Tests\Feature\Assets\Api;
use App\Models\Asset; use App\Models\Asset;
use App\Models\Company; use App\Models\Company;
use App\Models\User; use App\Models\User;
use Tests\Concerns\TestsMultipleFullCompanySupport; use Tests\Concerns\TestsFullMultipleCompaniesSupport;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
class DeleteAssetsTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement class DeleteAssetsTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()
{ {
@ -22,7 +22,7 @@ class DeleteAssetsTest extends TestCase implements TestsMultipleFullCompanySuppo
$this->assertNotSoftDeleted($asset); $this->assertNotSoftDeleted($asset);
} }
public function testAdheresToMultipleFullCompanySupportScoping() public function testAdheresToFullMultipleCompaniesSupportScoping()
{ {
[$companyA, $companyB] = Company::factory()->count(2)->create(); [$companyA, $companyB] = Company::factory()->count(2)->create();

View file

@ -5,11 +5,11 @@ namespace Tests\Feature\Components\Api;
use App\Models\Company; use App\Models\Company;
use App\Models\Component; use App\Models\Component;
use App\Models\User; use App\Models\User;
use Tests\Concerns\TestsMultipleFullCompanySupport; use Tests\Concerns\TestsFullMultipleCompaniesSupport;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
class DeleteComponentsTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement class DeleteComponentsTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()
{ {
@ -22,7 +22,7 @@ class DeleteComponentsTest extends TestCase implements TestsMultipleFullCompanyS
$this->assertNotSoftDeleted($component); $this->assertNotSoftDeleted($component);
} }
public function testAdheresToMultipleFullCompanySupportScoping() public function testAdheresToFullMultipleCompaniesSupportScoping()
{ {
[$companyA, $companyB] = Company::factory()->count(2)->create(); [$companyA, $companyB] = Company::factory()->count(2)->create();

View file

@ -5,11 +5,11 @@ namespace Tests\Feature\Consumables\Api;
use App\Models\Company; use App\Models\Company;
use App\Models\Consumable; use App\Models\Consumable;
use App\Models\User; use App\Models\User;
use Tests\Concerns\TestsMultipleFullCompanySupport; use Tests\Concerns\TestsFullMultipleCompaniesSupport;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
class DeleteConsumablesTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement class DeleteConsumablesTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()
{ {
@ -22,7 +22,7 @@ class DeleteConsumablesTest extends TestCase implements TestsMultipleFullCompany
$this->assertNotSoftDeleted($consumable); $this->assertNotSoftDeleted($consumable);
} }
public function testAdheresToMultipleFullCompanySupportScoping() public function testAdheresToFullMultipleCompaniesSupportScoping()
{ {
[$companyA, $companyB] = Company::factory()->count(2)->create(); [$companyA, $companyB] = Company::factory()->count(2)->create();

View file

@ -5,11 +5,11 @@ namespace Tests\Feature\Departments\Api;
use App\Models\Company; use App\Models\Company;
use App\Models\Department; use App\Models\Department;
use App\Models\User; use App\Models\User;
use Tests\Concerns\TestsMultipleFullCompanySupport; use Tests\Concerns\TestsFullMultipleCompaniesSupport;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
class DeleteDepartmentsTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement class DeleteDepartmentsTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()
{ {
@ -22,7 +22,7 @@ class DeleteDepartmentsTest extends TestCase implements TestsMultipleFullCompany
$this->assertDatabaseHas('departments', ['id' => $department->id]); $this->assertDatabaseHas('departments', ['id' => $department->id]);
} }
public function testAdheresToMultipleFullCompanySupportScoping() public function testAdheresToFullMultipleCompaniesSupportScoping()
{ {
[$companyA, $companyB] = Company::factory()->count(2)->create(); [$companyA, $companyB] = Company::factory()->count(2)->create();

View file

@ -5,11 +5,11 @@ namespace Tests\Feature\Licenses\Api;
use App\Models\Company; use App\Models\Company;
use App\Models\License; use App\Models\License;
use App\Models\User; use App\Models\User;
use Tests\Concerns\TestsMultipleFullCompanySupport; use Tests\Concerns\TestsFullMultipleCompaniesSupport;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
class DeleteLicensesTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement class DeleteLicensesTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()
{ {
@ -22,7 +22,7 @@ class DeleteLicensesTest extends TestCase implements TestsMultipleFullCompanySup
$this->assertNotSoftDeleted($license); $this->assertNotSoftDeleted($license);
} }
public function testAdheresToMultipleFullCompanySupportScoping() public function testAdheresToFullMultipleCompaniesSupportScoping()
{ {
[$companyA, $companyB] = Company::factory()->count(2)->create(); [$companyA, $companyB] = Company::factory()->count(2)->create();

View file

@ -6,11 +6,11 @@ use App\Models\Company;
use App\Models\LicenseSeat; use App\Models\LicenseSeat;
use App\Models\Location; use App\Models\Location;
use App\Models\User; use App\Models\User;
use Tests\Concerns\TestsMultipleFullCompanySupport; use Tests\Concerns\TestsFullMultipleCompaniesSupport;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
class DeleteUsersTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement class DeleteUsersTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()
{ {
@ -100,7 +100,7 @@ class DeleteUsersTest extends TestCase implements TestsMultipleFullCompanySuppor
} }
public function testAdheresToMultipleFullCompanySupportScoping() public function testAdheresToFullMultipleCompaniesSupportScoping()
{ {
$this->settings->enableMultipleFullCompanySupport(); $this->settings->enableMultipleFullCompanySupport();