forked from fa/breadcrumb-the-shire
fix: eliminate PHPUnit warnings and deprecations in test suite
Set defaultTestSuite="CoreCore" to prevent 222 duplicate file warnings, and replace deprecated isType() with isArray()/isString() in notification listener tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -51,7 +51,7 @@ final class UserActivatedNotificationListenerTest extends TestCase
|
||||
'admin/users/edit/user-uuid',
|
||||
['user_id' => 10, 'uuid' => 'user-uuid'],
|
||||
5,
|
||||
$this->isType('array')
|
||||
$this->isArray()
|
||||
);
|
||||
|
||||
$this->listener->handle('user.activated', [
|
||||
|
||||
@@ -44,9 +44,9 @@ final class UserAssignmentChangedNotificationListenerTest extends TestCase
|
||||
null,
|
||||
'user.assignment_changed',
|
||||
$this->stringContains('Alice'),
|
||||
$this->isType('string'),
|
||||
$this->isString(),
|
||||
'admin/users/edit/user-uuid',
|
||||
$this->isType('array')
|
||||
$this->isArray()
|
||||
)
|
||||
->willReturn(99);
|
||||
|
||||
@@ -56,11 +56,11 @@ final class UserAssignmentChangedNotificationListenerTest extends TestCase
|
||||
1,
|
||||
'user.assignment_changed',
|
||||
$this->stringContains('Alice'),
|
||||
$this->isType('string'),
|
||||
$this->isString(),
|
||||
'admin/users/edit/user-uuid',
|
||||
$this->isType('array'),
|
||||
$this->isArray(),
|
||||
7,
|
||||
$this->isType('array')
|
||||
$this->isArray()
|
||||
)
|
||||
->willReturn(1);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ final class UserDeactivatedNotificationListenerTest extends TestCase
|
||||
'admin/users/edit/user-uuid',
|
||||
['user_id' => 10, 'uuid' => 'user-uuid'],
|
||||
5,
|
||||
$this->isType('array')
|
||||
$this->isArray()
|
||||
);
|
||||
|
||||
$this->listener->handle('user.deactivated', [
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
|
||||
bootstrap="tests/bootstrap.php"
|
||||
colors="true">
|
||||
colors="true"
|
||||
defaultTestSuite="CoreCore">
|
||||
<source ignoreIndirectDeprecations="true">
|
||||
<include>
|
||||
<directory>config</directory>
|
||||
|
||||
Reference in New Issue
Block a user