feat: upgrade phpunit to 12.5

This commit is contained in:
Björn Fromme
2026-08-31 09:31:00 +02:00
parent 010cfe56b2
commit bfad61f1dd
95 changed files with 1436 additions and 1224 deletions
@@ -80,7 +80,7 @@ class DashboardWidgetRegistryTest extends TestCase
private function provider(string $role, int $priority, ?DashboardWidget $widget): DashboardWidgetProviderInterface
{
$provider = $this->createMock(DashboardWidgetProviderInterface::class);
$provider = $this->createStub(DashboardWidgetProviderInterface::class);
$provider->method('getRequiredRole')->willReturn($role);
$provider->method('getPriority')->willReturn($priority);
$provider->method('build')->willReturn($widget);
@@ -93,7 +93,7 @@ class DashboardWidgetRegistryTest extends TestCase
*/
private function securityGranting(array $grantedRoles): Security
{
$security = $this->createMock(Security::class);
$security = $this->createStub(Security::class);
$security->method('isGranted')->willReturnCallback(
static fn (mixed $role): bool => \in_array($role, $grantedRoles, true),
);