Skip to content

Commit 54357e0

Browse files
authored
Fixes testsuite on phpunit10 (#46002)
1 parent cb40a65 commit 54357e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Foundation/FoundationInteractsWithDatabaseTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function testGetTableNameFromModel()
325325

326326
public function testExpectsDatabaseQueryCount()
327327
{
328-
$case = new class extends TestingTestCase
328+
$case = new class('foo') extends TestingTestCase
329329
{
330330
use CreatesApplication;
331331

@@ -339,7 +339,7 @@ public function testExpectsDatabaseQueryCount()
339339
$case->testExpectsDatabaseQueryCount();
340340
$case->tearDown();
341341

342-
$case = new class extends TestingTestCase
342+
$case = new class('foo') extends TestingTestCase
343343
{
344344
use CreatesApplication;
345345

@@ -359,7 +359,7 @@ public function testExpectsDatabaseQueryCount()
359359
$this->assertSame("Expected 3 database queries on the [testing] connection. 0 occurred.\nFailed asserting that 3 is identical to 0.", $e->getMessage());
360360
}
361361

362-
$case = new class extends TestingTestCase
362+
$case = new class('foo') extends TestingTestCase
363363
{
364364
use CreatesApplication;
365365

0 commit comments

Comments
 (0)