From 99dd51a965c7a02f8b24deddd1c233fac05f8465 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 17 Oct 2024 14:53:18 -0700 Subject: [PATCH] Improve name --- .../Ui/CreateAccessoryWithFullMultipleCompanySupportTest.php | 2 +- .../Assets/Api/StoreAssetWithFullMultipleCompanySupportTest.php | 2 +- .../Assets/Ui/StoreAssetWithFullMultipleCompanySupportTest.php | 2 +- .../Ui/StoreComponentWithFullMultipleCompanySupportTest.php | 2 +- .../Ui/StoreConsumableWithFullMultipleCompanySupportTest.php | 2 +- .../Ui/StoreLicenseWithFullMultipleCompanySupportTest.php | 2 +- .../ProvidesDataForFullMultipleCompanySupportTesting.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/Feature/Accessories/Ui/CreateAccessoryWithFullMultipleCompanySupportTest.php b/tests/Feature/Accessories/Ui/CreateAccessoryWithFullMultipleCompanySupportTest.php index 42a393e2f8..c256830a63 100644 --- a/tests/Feature/Accessories/Ui/CreateAccessoryWithFullMultipleCompanySupportTest.php +++ b/tests/Feature/Accessories/Ui/CreateAccessoryWithFullMultipleCompanySupportTest.php @@ -14,7 +14,7 @@ class CreateAccessoryWithFullMultipleCompanySupportTest extends TestCase use ProvidesDataForFullMultipleCompanySupportTesting; #[Group('focus')] - #[DataProvider('userProvider')] + #[DataProvider('dataForFullMultipleCompanySupportTesting')] public function testAdheresToFullMultipleCompaniesSupportScoping($data) { ['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data(); diff --git a/tests/Feature/Assets/Api/StoreAssetWithFullMultipleCompanySupportTest.php b/tests/Feature/Assets/Api/StoreAssetWithFullMultipleCompanySupportTest.php index 186355c32a..57d09e7e13 100644 --- a/tests/Feature/Assets/Api/StoreAssetWithFullMultipleCompanySupportTest.php +++ b/tests/Feature/Assets/Api/StoreAssetWithFullMultipleCompanySupportTest.php @@ -18,7 +18,7 @@ class StoreAssetWithFullMultipleCompanySupportTest extends TestCase * @link https://github.com/snipe/snipe-it/issues/15654 */ #[Group('focus')] - #[DataProvider('userProvider')] + #[DataProvider('dataForFullMultipleCompanySupportTesting')] public function testAdheresToFullMultipleCompaniesSupportScoping($data) { ['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data(); diff --git a/tests/Feature/Assets/Ui/StoreAssetWithFullMultipleCompanySupportTest.php b/tests/Feature/Assets/Ui/StoreAssetWithFullMultipleCompanySupportTest.php index 183ad20a5f..b6302f95c8 100644 --- a/tests/Feature/Assets/Ui/StoreAssetWithFullMultipleCompanySupportTest.php +++ b/tests/Feature/Assets/Ui/StoreAssetWithFullMultipleCompanySupportTest.php @@ -15,7 +15,7 @@ class StoreAssetWithFullMultipleCompanySupportTest extends TestCase use ProvidesDataForFullMultipleCompanySupportTesting; #[Group('focus')] - #[DataProvider('userProvider')] + #[DataProvider('dataForFullMultipleCompanySupportTesting')] public function testAdheresToFullMultipleCompaniesSupportScoping($data) { ['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data(); diff --git a/tests/Feature/Components/Ui/StoreComponentWithFullMultipleCompanySupportTest.php b/tests/Feature/Components/Ui/StoreComponentWithFullMultipleCompanySupportTest.php index 7abd762205..13bfd72273 100644 --- a/tests/Feature/Components/Ui/StoreComponentWithFullMultipleCompanySupportTest.php +++ b/tests/Feature/Components/Ui/StoreComponentWithFullMultipleCompanySupportTest.php @@ -14,7 +14,7 @@ class StoreComponentWithFullMultipleCompanySupportTest extends TestCase use ProvidesDataForFullMultipleCompanySupportTesting; #[Group('focus')] - #[DataProvider('userProvider')] + #[DataProvider('dataForFullMultipleCompanySupportTesting')] public function testAdheresToFullMultipleCompaniesSupportScoping($data) { ['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data(); diff --git a/tests/Feature/Consumables/Ui/StoreConsumableWithFullMultipleCompanySupportTest.php b/tests/Feature/Consumables/Ui/StoreConsumableWithFullMultipleCompanySupportTest.php index fb9ab1e3b4..00b2f5529d 100644 --- a/tests/Feature/Consumables/Ui/StoreConsumableWithFullMultipleCompanySupportTest.php +++ b/tests/Feature/Consumables/Ui/StoreConsumableWithFullMultipleCompanySupportTest.php @@ -14,7 +14,7 @@ class StoreConsumableWithFullMultipleCompanySupportTest extends TestCase use ProvidesDataForFullMultipleCompanySupportTesting; #[Group('focus')] - #[DataProvider('userProvider')] + #[DataProvider('dataForFullMultipleCompanySupportTesting')] public function testAdheresToFullMultipleCompaniesSupportScoping($data) { ['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data(); diff --git a/tests/Feature/Licenses/Ui/StoreLicenseWithFullMultipleCompanySupportTest.php b/tests/Feature/Licenses/Ui/StoreLicenseWithFullMultipleCompanySupportTest.php index dcb827a842..75a4b1f552 100644 --- a/tests/Feature/Licenses/Ui/StoreLicenseWithFullMultipleCompanySupportTest.php +++ b/tests/Feature/Licenses/Ui/StoreLicenseWithFullMultipleCompanySupportTest.php @@ -14,7 +14,7 @@ class StoreLicenseWithFullMultipleCompanySupportTest extends TestCase use ProvidesDataForFullMultipleCompanySupportTesting; #[Group('focus')] - #[DataProvider('userProvider')] + #[DataProvider('dataForFullMultipleCompanySupportTesting')] public function testAdheresToFullMultipleCompaniesSupportScoping($data) { ['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data(); diff --git a/tests/Support/ProvidesDataForFullMultipleCompanySupportTesting.php b/tests/Support/ProvidesDataForFullMultipleCompanySupportTesting.php index fad4c2ae7b..d247b98161 100644 --- a/tests/Support/ProvidesDataForFullMultipleCompanySupportTesting.php +++ b/tests/Support/ProvidesDataForFullMultipleCompanySupportTesting.php @@ -8,7 +8,7 @@ use Generator; trait ProvidesDataForFullMultipleCompanySupportTesting { - public static function userProvider(): Generator + public static function dataForFullMultipleCompanySupportTesting(): Generator { yield "User in a company should result in user's company_id being used" => [ function () {