Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit fde882f

Browse files
author
Kirill Nesmeyanov
committed
Fix tests compatibility with phpunit 10.x
1 parent 5fe2c9f commit fde882f

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
use Illuminate\Foundation\Testing\Concerns\InteractsWithDatabase;
1111
use Illuminate\Foundation\Testing\DatabaseMigrations;
1212
use Illuminate\Foundation\Testing\RefreshDatabase;
13+
use PHPUnit\Framework\Attributes\Group;
1314
use Tests\TestCase;
1415

15-
abstract class FeatureTest extends TestCase
16+
#[Group('feature')]
17+
abstract class FeatureTestCase extends TestCase
1618
{
1719
use InteractsWithDatabase;
1820
use RefreshDatabase;

tests/Feature/RoutesTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
namespace Tests\Feature;
66

7+
use PHPUnit\Framework\Attributes\Group;
78
use Ramsey\Uuid\Uuid;
89

9-
class RoutesTest extends FeatureTest
10+
#[Group('feature')]
11+
class RoutesTest extends FeatureTestCase
1012
{
1113
public function testHomePageIsAvailable(): void
1214
{

tests/Unit/UnitTest.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/Unit/UnitTestCase.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Tests\Unit;
6+
7+
use PHPUnit\Framework\Attributes\Group;
8+
use Tests\TestCase;
9+
10+
#[Group('unit')]
11+
abstract class UnitTestCase extends TestCase
12+
{
13+
}

0 commit comments

Comments
 (0)