Declare data providers as static

This commit is contained in:
Shift 2024-08-06 20:25:21 +00:00
parent 96241cb67c
commit b1e92ab866
No known key found for this signature in database
GPG key ID: 5A96F038425C5A1C
5 changed files with 7 additions and 7 deletions

View file

@ -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' => [

View file

@ -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 () {

View file

@ -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()],

View file

@ -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()],

View file

@ -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],