mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Improve name
This commit is contained in:
parent
15c2169477
commit
99dd51a965
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue