diff --git a/tests/Unit/Controllers/UrlControllerTest.php b/tests/Unit/Controllers/UrlControllerTest.php index f49bc42ff..86723890a 100644 --- a/tests/Unit/Controllers/UrlControllerTest.php +++ b/tests/Unit/Controllers/UrlControllerTest.php @@ -3,10 +3,10 @@ namespace Tests\Unit\Controllers; use App\Models\Url; -use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; +#[\PHPUnit\Framework\Attributes\Group('controller')] class UrlControllerTest extends TestCase { /** @@ -14,7 +14,6 @@ class UrlControllerTest extends TestCase * (Urls table) must be filled with a null value. */ #[Test] - #[Group('u-controller')] public function guestShortenURL(): void { $longUrl = 'https://laravel.com'; @@ -30,7 +29,6 @@ public function guestShortenURL(): void * the authenticated user id. */ #[Test] - #[Group('u-controller')] public function userShortenURL(): void { $user = $this->normalUser(); @@ -44,7 +42,6 @@ public function userShortenURL(): void } #[Test] - #[Group('u-controller')] public function showDetail(): void { $url = Url::factory()->create(); diff --git a/tests/Unit/Controllers/UrlRedirectControllerTest.php b/tests/Unit/Controllers/UrlRedirectControllerTest.php index 88de810e9..4ea5ad19b 100644 --- a/tests/Unit/Controllers/UrlRedirectControllerTest.php +++ b/tests/Unit/Controllers/UrlRedirectControllerTest.php @@ -4,14 +4,13 @@ use App\Models\Url; use App\Models\Visit; -use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; +#[\PHPUnit\Framework\Attributes\Group('controller')] class UrlRedirectControllerTest extends TestCase { #[Test] - #[Group('u-controller')] public function urlRedirection(): void { $url = Url::factory()->create();