mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Improve name
This commit is contained in:
parent
15c2169477
commit
99dd51a965
|
@ -14,7 +14,7 @@ class CreateAccessoryWithFullMultipleCompanySupportTest extends TestCase
|
||||||
use ProvidesDataForFullMultipleCompanySupportTesting;
|
use ProvidesDataForFullMultipleCompanySupportTesting;
|
||||||
|
|
||||||
#[Group('focus')]
|
#[Group('focus')]
|
||||||
#[DataProvider('userProvider')]
|
#[DataProvider('dataForFullMultipleCompanySupportTesting')]
|
||||||
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
||||||
{
|
{
|
||||||
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $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
|
* @link https://github.com/snipe/snipe-it/issues/15654
|
||||||
*/
|
*/
|
||||||
#[Group('focus')]
|
#[Group('focus')]
|
||||||
#[DataProvider('userProvider')]
|
#[DataProvider('dataForFullMultipleCompanySupportTesting')]
|
||||||
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
||||||
{
|
{
|
||||||
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
||||||
|
|
|
@ -15,7 +15,7 @@ class StoreAssetWithFullMultipleCompanySupportTest extends TestCase
|
||||||
use ProvidesDataForFullMultipleCompanySupportTesting;
|
use ProvidesDataForFullMultipleCompanySupportTesting;
|
||||||
|
|
||||||
#[Group('focus')]
|
#[Group('focus')]
|
||||||
#[DataProvider('userProvider')]
|
#[DataProvider('dataForFullMultipleCompanySupportTesting')]
|
||||||
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
||||||
{
|
{
|
||||||
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
||||||
|
|
|
@ -14,7 +14,7 @@ class StoreComponentWithFullMultipleCompanySupportTest extends TestCase
|
||||||
use ProvidesDataForFullMultipleCompanySupportTesting;
|
use ProvidesDataForFullMultipleCompanySupportTesting;
|
||||||
|
|
||||||
#[Group('focus')]
|
#[Group('focus')]
|
||||||
#[DataProvider('userProvider')]
|
#[DataProvider('dataForFullMultipleCompanySupportTesting')]
|
||||||
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
||||||
{
|
{
|
||||||
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
||||||
|
|
|
@ -14,7 +14,7 @@ class StoreConsumableWithFullMultipleCompanySupportTest extends TestCase
|
||||||
use ProvidesDataForFullMultipleCompanySupportTesting;
|
use ProvidesDataForFullMultipleCompanySupportTesting;
|
||||||
|
|
||||||
#[Group('focus')]
|
#[Group('focus')]
|
||||||
#[DataProvider('userProvider')]
|
#[DataProvider('dataForFullMultipleCompanySupportTesting')]
|
||||||
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
||||||
{
|
{
|
||||||
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
||||||
|
|
|
@ -14,7 +14,7 @@ class StoreLicenseWithFullMultipleCompanySupportTest extends TestCase
|
||||||
use ProvidesDataForFullMultipleCompanySupportTesting;
|
use ProvidesDataForFullMultipleCompanySupportTesting;
|
||||||
|
|
||||||
#[Group('focus')]
|
#[Group('focus')]
|
||||||
#[DataProvider('userProvider')]
|
#[DataProvider('dataForFullMultipleCompanySupportTesting')]
|
||||||
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
public function testAdheresToFullMultipleCompaniesSupportScoping($data)
|
||||||
{
|
{
|
||||||
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
['actor' => $actor, 'company_attempting_to_associate' => $company, 'assertions' => $assertions] = $data();
|
||||||
|
|
|
@ -8,7 +8,7 @@ use Generator;
|
||||||
|
|
||||||
trait ProvidesDataForFullMultipleCompanySupportTesting
|
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" => [
|
yield "User in a company should result in user's company_id being used" => [
|
||||||
function () {
|
function () {
|
||||||
|
|
Loading…
Reference in a new issue