diff --git a/tests/Concerns/TestsFullMultipleCompaniesSupport.php b/tests/Concerns/TestsFullMultipleCompaniesSupport.php new file mode 100644 index 0000000000..a52d27bd22 --- /dev/null +++ b/tests/Concerns/TestsFullMultipleCompaniesSupport.php @@ -0,0 +1,8 @@ +assertNotSoftDeleted($accessory); } - public function testAdheresToMultipleFullCompanySupportScoping() + public function testAdheresToFullMultipleCompaniesSupportScoping() { [$companyA, $companyB] = Company::factory()->count(2)->create(); diff --git a/tests/Feature/AssetMaintenances/Api/DeleteAssetMaintenancesTest.php b/tests/Feature/AssetMaintenances/Api/DeleteAssetMaintenancesTest.php index ed7ed44447..8a0189bc5b 100644 --- a/tests/Feature/AssetMaintenances/Api/DeleteAssetMaintenancesTest.php +++ b/tests/Feature/AssetMaintenances/Api/DeleteAssetMaintenancesTest.php @@ -5,11 +5,11 @@ namespace Tests\Feature\AssetMaintenances\Api; use App\Models\AssetMaintenance; use App\Models\Company; use App\Models\User; -use Tests\Concerns\TestsMultipleFullCompanySupport; +use Tests\Concerns\TestsFullMultipleCompaniesSupport; use Tests\Concerns\TestsPermissionsRequirement; use Tests\TestCase; -class DeleteAssetMaintenancesTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement +class DeleteAssetMaintenancesTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement { public function testRequiresPermission() { @@ -22,7 +22,7 @@ class DeleteAssetMaintenancesTest extends TestCase implements TestsMultipleFullC $this->assertNotSoftDeleted($assetMaintenance); } - public function testAdheresToMultipleFullCompanySupportScoping() + public function testAdheresToFullMultipleCompaniesSupportScoping() { [$companyA, $companyB] = Company::factory()->count(2)->create(); diff --git a/tests/Feature/Assets/Api/DeleteAssetsTest.php b/tests/Feature/Assets/Api/DeleteAssetsTest.php index 95640ed83f..5a017e0f5d 100644 --- a/tests/Feature/Assets/Api/DeleteAssetsTest.php +++ b/tests/Feature/Assets/Api/DeleteAssetsTest.php @@ -5,11 +5,11 @@ namespace Tests\Feature\Assets\Api; use App\Models\Asset; use App\Models\Company; use App\Models\User; -use Tests\Concerns\TestsMultipleFullCompanySupport; +use Tests\Concerns\TestsFullMultipleCompaniesSupport; use Tests\Concerns\TestsPermissionsRequirement; use Tests\TestCase; -class DeleteAssetsTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement +class DeleteAssetsTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement { public function testRequiresPermission() { @@ -22,7 +22,7 @@ class DeleteAssetsTest extends TestCase implements TestsMultipleFullCompanySuppo $this->assertNotSoftDeleted($asset); } - public function testAdheresToMultipleFullCompanySupportScoping() + public function testAdheresToFullMultipleCompaniesSupportScoping() { [$companyA, $companyB] = Company::factory()->count(2)->create(); diff --git a/tests/Feature/Components/Api/DeleteComponentsTest.php b/tests/Feature/Components/Api/DeleteComponentsTest.php index df965d745c..e95fe34559 100644 --- a/tests/Feature/Components/Api/DeleteComponentsTest.php +++ b/tests/Feature/Components/Api/DeleteComponentsTest.php @@ -5,11 +5,11 @@ namespace Tests\Feature\Components\Api; use App\Models\Company; use App\Models\Component; use App\Models\User; -use Tests\Concerns\TestsMultipleFullCompanySupport; +use Tests\Concerns\TestsFullMultipleCompaniesSupport; use Tests\Concerns\TestsPermissionsRequirement; use Tests\TestCase; -class DeleteComponentsTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement +class DeleteComponentsTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement { public function testRequiresPermission() { @@ -22,7 +22,7 @@ class DeleteComponentsTest extends TestCase implements TestsMultipleFullCompanyS $this->assertNotSoftDeleted($component); } - public function testAdheresToMultipleFullCompanySupportScoping() + public function testAdheresToFullMultipleCompaniesSupportScoping() { [$companyA, $companyB] = Company::factory()->count(2)->create(); diff --git a/tests/Feature/Consumables/Api/DeleteConsumablesTest.php b/tests/Feature/Consumables/Api/DeleteConsumablesTest.php index c57e2e0df8..1ab91e07a0 100644 --- a/tests/Feature/Consumables/Api/DeleteConsumablesTest.php +++ b/tests/Feature/Consumables/Api/DeleteConsumablesTest.php @@ -5,11 +5,11 @@ namespace Tests\Feature\Consumables\Api; use App\Models\Company; use App\Models\Consumable; use App\Models\User; -use Tests\Concerns\TestsMultipleFullCompanySupport; +use Tests\Concerns\TestsFullMultipleCompaniesSupport; use Tests\Concerns\TestsPermissionsRequirement; use Tests\TestCase; -class DeleteConsumablesTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement +class DeleteConsumablesTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement { public function testRequiresPermission() { @@ -22,7 +22,7 @@ class DeleteConsumablesTest extends TestCase implements TestsMultipleFullCompany $this->assertNotSoftDeleted($consumable); } - public function testAdheresToMultipleFullCompanySupportScoping() + public function testAdheresToFullMultipleCompaniesSupportScoping() { [$companyA, $companyB] = Company::factory()->count(2)->create(); diff --git a/tests/Feature/Departments/Api/DeleteDepartmentsTest.php b/tests/Feature/Departments/Api/DeleteDepartmentsTest.php index 82c6e72700..cf59b81510 100644 --- a/tests/Feature/Departments/Api/DeleteDepartmentsTest.php +++ b/tests/Feature/Departments/Api/DeleteDepartmentsTest.php @@ -5,11 +5,11 @@ namespace Tests\Feature\Departments\Api; use App\Models\Company; use App\Models\Department; use App\Models\User; -use Tests\Concerns\TestsMultipleFullCompanySupport; +use Tests\Concerns\TestsFullMultipleCompaniesSupport; use Tests\Concerns\TestsPermissionsRequirement; use Tests\TestCase; -class DeleteDepartmentsTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement +class DeleteDepartmentsTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement { public function testRequiresPermission() { @@ -22,7 +22,7 @@ class DeleteDepartmentsTest extends TestCase implements TestsMultipleFullCompany $this->assertDatabaseHas('departments', ['id' => $department->id]); } - public function testAdheresToMultipleFullCompanySupportScoping() + public function testAdheresToFullMultipleCompaniesSupportScoping() { [$companyA, $companyB] = Company::factory()->count(2)->create(); diff --git a/tests/Feature/Licenses/Api/DeleteLicensesTest.php b/tests/Feature/Licenses/Api/DeleteLicensesTest.php index b0d72925bc..7db8e588d3 100644 --- a/tests/Feature/Licenses/Api/DeleteLicensesTest.php +++ b/tests/Feature/Licenses/Api/DeleteLicensesTest.php @@ -5,11 +5,11 @@ namespace Tests\Feature\Licenses\Api; use App\Models\Company; use App\Models\License; use App\Models\User; -use Tests\Concerns\TestsMultipleFullCompanySupport; +use Tests\Concerns\TestsFullMultipleCompaniesSupport; use Tests\Concerns\TestsPermissionsRequirement; use Tests\TestCase; -class DeleteLicensesTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement +class DeleteLicensesTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement { public function testRequiresPermission() { @@ -22,7 +22,7 @@ class DeleteLicensesTest extends TestCase implements TestsMultipleFullCompanySup $this->assertNotSoftDeleted($license); } - public function testAdheresToMultipleFullCompanySupportScoping() + public function testAdheresToFullMultipleCompaniesSupportScoping() { [$companyA, $companyB] = Company::factory()->count(2)->create(); diff --git a/tests/Feature/Users/Api/DeleteUsersTest.php b/tests/Feature/Users/Api/DeleteUsersTest.php index 1014634d4f..9677e5f7d4 100644 --- a/tests/Feature/Users/Api/DeleteUsersTest.php +++ b/tests/Feature/Users/Api/DeleteUsersTest.php @@ -6,11 +6,11 @@ use App\Models\Company; use App\Models\LicenseSeat; use App\Models\Location; use App\Models\User; -use Tests\Concerns\TestsMultipleFullCompanySupport; +use Tests\Concerns\TestsFullMultipleCompaniesSupport; use Tests\Concerns\TestsPermissionsRequirement; use Tests\TestCase; -class DeleteUsersTest extends TestCase implements TestsMultipleFullCompanySupport, TestsPermissionsRequirement +class DeleteUsersTest extends TestCase implements TestsFullMultipleCompaniesSupport, TestsPermissionsRequirement { public function testRequiresPermission() { @@ -100,7 +100,7 @@ class DeleteUsersTest extends TestCase implements TestsMultipleFullCompanySuppor } - public function testAdheresToMultipleFullCompanySupportScoping() + public function testAdheresToFullMultipleCompaniesSupportScoping() { $this->settings->enableMultipleFullCompanySupport();