feat: upgrade phpunit to 12.5
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user