mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -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
|
* This data provider contains checkout targets along with the
|
||||||
* asset's expected location after the checkout process.
|
* asset's expected location after the checkout process.
|
||||||
*/
|
*/
|
||||||
public function checkoutTargets(): array
|
public static function checkoutTargets(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'Checkout to User' => [
|
'Checkout to User' => [
|
||||||
|
|
|
@ -122,7 +122,7 @@ class AssetCheckoutTest extends TestCase
|
||||||
* This data provider contains checkout targets along with the
|
* This data provider contains checkout targets along with the
|
||||||
* asset's expected location after the checkout process.
|
* asset's expected location after the checkout process.
|
||||||
*/
|
*/
|
||||||
public function checkoutTargets(): array
|
public static function checkoutTargets(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'User' => [function () {
|
'User' => [function () {
|
||||||
|
|
|
@ -28,7 +28,7 @@ class SlackNotificationsUponCheckinTest extends TestCase
|
||||||
Notification::fake();
|
Notification::fake();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function assetCheckInTargets(): array
|
public static function assetCheckInTargets(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'Asset checked out to user' => [fn() => User::factory()->create()],
|
'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 [
|
return [
|
||||||
'License checked out to user' => [fn() => User::factory()->create()],
|
'License checked out to user' => [fn() => User::factory()->create()],
|
||||||
|
|
|
@ -30,7 +30,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase
|
||||||
Notification::fake();
|
Notification::fake();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function assetCheckoutTargets(): array
|
public static function assetCheckoutTargets(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'Asset checked out to user' => [fn() => User::factory()->create()],
|
'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 [
|
return [
|
||||||
'License checked out to user' => [fn() => User::factory()->create()],
|
'License checked out to user' => [fn() => User::factory()->create()],
|
||||||
|
|
|
@ -17,7 +17,7 @@ use Tests\TestCase;
|
||||||
|
|
||||||
class CompanyScopingTest extends TestCase
|
class CompanyScopingTest extends TestCase
|
||||||
{
|
{
|
||||||
public function models(): array
|
public static function models(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'Accessories' => [Accessory::class],
|
'Accessories' => [Accessory::class],
|
||||||
|
|
Loading…
Reference in a new issue