Move trait usage to parent TestCase

This commit is contained in:
Marcus Moore 2024-03-14 12:56:49 -07:00
parent dbc79655b0
commit 485f11c945
No known key found for this signature in database
3 changed files with 2 additions and 4 deletions

View file

@ -14,7 +14,6 @@ use App\Notifications\CheckinAssetNotification;
use App\Notifications\CheckinLicenseSeatNotification; use App\Notifications\CheckinLicenseSeatNotification;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\Support\AssertsAgainstSlackNotifications;
use Tests\Support\InteractsWithSettings; use Tests\Support\InteractsWithSettings;
use Tests\TestCase; use Tests\TestCase;
@ -23,7 +22,6 @@ use Tests\TestCase;
*/ */
class SlackNotificationsUponCheckinTest extends TestCase class SlackNotificationsUponCheckinTest extends TestCase
{ {
use AssertsAgainstSlackNotifications;
use InteractsWithSettings; use InteractsWithSettings;
protected function setUp(): void protected function setUp(): void

View file

@ -16,7 +16,6 @@ use App\Notifications\CheckoutConsumableNotification;
use App\Notifications\CheckoutLicenseSeatNotification; use App\Notifications\CheckoutLicenseSeatNotification;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\Support\AssertsAgainstSlackNotifications;
use Tests\Support\InteractsWithSettings; use Tests\Support\InteractsWithSettings;
use Tests\TestCase; use Tests\TestCase;
@ -25,7 +24,6 @@ use Tests\TestCase;
*/ */
class SlackNotificationsUponCheckoutTest extends TestCase class SlackNotificationsUponCheckoutTest extends TestCase
{ {
use AssertsAgainstSlackNotifications;
use InteractsWithSettings; use InteractsWithSettings;
protected function setUp(): void protected function setUp(): void

View file

@ -6,12 +6,14 @@ use App\Http\Middleware\SecurityHeaders;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase; use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use RuntimeException; use RuntimeException;
use Tests\Support\AssertsAgainstSlackNotifications;
use Tests\Support\CustomTestMacros; use Tests\Support\CustomTestMacros;
use Tests\Support\InteractsWithAuthentication; use Tests\Support\InteractsWithAuthentication;
use Tests\Support\InteractsWithSettings; use Tests\Support\InteractsWithSettings;
abstract class TestCase extends BaseTestCase abstract class TestCase extends BaseTestCase
{ {
use AssertsAgainstSlackNotifications;
use CreatesApplication; use CreatesApplication;
use CustomTestMacros; use CustomTestMacros;
use InteractsWithAuthentication; use InteractsWithAuthentication;