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:
2026-03-22 14:14:39 +01:00
parent 141f0a0155
commit e24af62a59
4 changed files with 9 additions and 8 deletions

View File

@@ -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', [

View File

@@ -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);

View File

@@ -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', [