mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Declare data providers as static
This commit is contained in:
parent
96241cb67c
commit
b1e92ab866
|
@ -83,7 +83,7 @@ class AssetCheckoutTest extends TestCase
|
|||
* This data provider contains checkout targets along with the
|
||||
* asset's expected location after the checkout process.
|
||||
*/
|
||||
public function checkoutTargets(): array
|
||||
public static function checkoutTargets(): array
|
||||
{
|
||||
return [
|
||||
'Checkout to User' => [
|
||||
|
|
|
@ -122,7 +122,7 @@ class AssetCheckoutTest extends TestCase
|
|||
* This data provider contains checkout targets along with the
|
||||
* asset's expected location after the checkout process.
|
||||
*/
|
||||
public function checkoutTargets(): array
|
||||
public static function checkoutTargets(): array
|
||||
{
|
||||
return [
|
||||
'User' => [function () {
|
||||
|
|
|
@ -28,7 +28,7 @@ class SlackNotificationsUponCheckinTest extends TestCase
|
|||
Notification::fake();
|
||||
}
|
||||
|
||||
public function assetCheckInTargets(): array
|
||||
public static function assetCheckInTargets(): array
|
||||
{
|
||||
return [
|
||||
'Asset checked out to user' => [fn() => User::factory()->create()],
|
||||
|
@ -37,7 +37,7 @@ class SlackNotificationsUponCheckinTest extends TestCase
|
|||
];
|
||||
}
|
||||
|
||||
public function licenseCheckInTargets(): array
|
||||
public static function licenseCheckInTargets(): array
|
||||
{
|
||||
return [
|
||||
'License checked out to user' => [fn() => User::factory()->create()],
|
||||
|
|
|
@ -30,7 +30,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase
|
|||
Notification::fake();
|
||||
}
|
||||
|
||||
public function assetCheckoutTargets(): array
|
||||
public static function assetCheckoutTargets(): array
|
||||
{
|
||||
return [
|
||||
'Asset checked out to user' => [fn() => User::factory()->create()],
|
||||
|
@ -39,7 +39,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase
|
|||
];
|
||||
}
|
||||
|
||||
public function licenseCheckoutTargets(): array
|
||||
public static function licenseCheckoutTargets(): array
|
||||
{
|
||||
return [
|
||||
'License checked out to user' => [fn() => User::factory()->create()],
|
||||
|
|
|
@ -17,7 +17,7 @@ use Tests\TestCase;
|
|||
|
||||
class CompanyScopingTest extends TestCase
|
||||
{
|
||||
public function models(): array
|
||||
public static function models(): array
|
||||
{
|
||||
return [
|
||||
'Accessories' => [Accessory::class],
|
||||
|
|
Loading…
Reference in a new issue