Skip to content

Commit faacf63

Browse files
authored
PHPORM-299 Enable PHPUnit 11 (#3286)
1 parent a8f38d9 commit faacf63

16 files changed

+41
-19
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"laravel/scout": "^10.3",
3838
"league/flysystem-gridfs": "^3.28",
3939
"league/flysystem-read-only": "^3.0",
40-
"phpunit/phpunit": "^10.3",
40+
"phpunit/phpunit": "^10.3|^11.5.3",
4141
"orchestra/testbench": "^8.0|^9.0",
4242
"mockery/mockery": "^1.4.4@stable",
4343
"doctrine/coding-standard": "12.0.x-dev",

tests/AuthTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ class AuthTest extends TestCase
1717
{
1818
public function tearDown(): void
1919
{
20-
parent::setUp();
21-
2220
User::truncate();
2321
DB::table('password_reset_tokens')->truncate();
22+
23+
parent::tearDown();
2424
}
2525

2626
public function testAuthAttempt()

tests/Eloquent/CallBuilderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ final class CallBuilderTest extends TestCase
2121
protected function tearDown(): void
2222
{
2323
User::truncate();
24+
25+
parent::tearDown();
2426
}
2527

2628
#[Dataprovider('provideFunctionNames')]

tests/Eloquent/MassPrunableTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function tearDown(): void
2020
{
2121
User::truncate();
2222
Soft::truncate();
23+
24+
parent::tearDown();
2325
}
2426

2527
public function testPruneWithQuery(): void

tests/EmbeddedRelationsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function tearDown(): void
2020
{
2121
Mockery::close();
2222
User::truncate();
23+
24+
parent::tearDown();
2325
}
2426

2527
public function testEmbedsManySave()

tests/GeospatialTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public function setUp(): void
5353
public function tearDown(): void
5454
{
5555
Schema::drop('locations');
56+
57+
parent::tearDown();
5658
}
5759

5860
public function testGeoWithin()

tests/HybridRelationsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public function tearDown(): void
4242
Skill::truncate();
4343
Experience::truncate();
4444
Label::truncate();
45+
46+
parent::tearDown();
4547
}
4648

4749
public function testSqlRelations()

tests/ModelTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public function tearDown(): void
5656
Book::truncate();
5757
Item::truncate();
5858
Guarded::truncate();
59+
60+
parent::tearDown();
5961
}
6062

6163
public function testNewModel(): void

tests/QueryBuilderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public function tearDown(): void
4343
{
4444
DB::table('users')->truncate();
4545
DB::table('items')->truncate();
46+
47+
parent::tearDown();
4648
}
4749

4850
public function testDeleteWithId()

tests/RelationsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public function tearDown(): void
3535
Photo::truncate();
3636
Label::truncate();
3737
Skill::truncate();
38+
39+
parent::tearDown();
3840
}
3941

4042
public function testHasMany(): void

0 commit comments

Comments
 (0)