listen ansichten verbessert
This commit is contained in:
@@ -11,7 +11,7 @@ class AuthorizationServiceTest extends TestCase
|
||||
{
|
||||
public function testReturnsPolicyDecisionForSupportedAbility(): void
|
||||
{
|
||||
$policy = new class implements AuthorizationPolicyInterface {
|
||||
$policy = new class () implements AuthorizationPolicyInterface {
|
||||
public function supports(string $ability): bool
|
||||
{
|
||||
return $ability === 'users.test';
|
||||
@@ -33,7 +33,7 @@ class AuthorizationServiceTest extends TestCase
|
||||
|
||||
public function testReturnsMissingPolicyDecisionWhenAbilityIsUnknown(): void
|
||||
{
|
||||
$policy = new class implements AuthorizationPolicyInterface {
|
||||
$policy = new class () implements AuthorizationPolicyInterface {
|
||||
public function supports(string $ability): bool
|
||||
{
|
||||
return false;
|
||||
@@ -55,7 +55,7 @@ class AuthorizationServiceTest extends TestCase
|
||||
|
||||
public function testAllowReturnsBoolDecisionShortcut(): void
|
||||
{
|
||||
$policy = new class implements AuthorizationPolicyInterface {
|
||||
$policy = new class () implements AuthorizationPolicyInterface {
|
||||
public function supports(string $ability): bool
|
||||
{
|
||||
return $ability === 'users.test';
|
||||
|
||||
Reference in New Issue
Block a user