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';
|
||||
|
||||
@@ -5,8 +5,8 @@ namespace MintyPHP\Tests\Service\Access;
|
||||
use MintyPHP\Service\Access\AuthorizationDecision;
|
||||
use MintyPHP\Service\Access\AuthorizationService;
|
||||
use MintyPHP\Service\Access\OperationsAuthorizationPolicy;
|
||||
use MintyPHP\Service\Access\UiCapabilityMap;
|
||||
use MintyPHP\Service\Access\UiAccessService;
|
||||
use MintyPHP\Service\Access\UiCapabilityMap;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class UiAccessServiceTest extends TestCase
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace MintyPHP\Tests\Service\Audit;
|
||||
|
||||
use MintyPHP\Http\RequestContext;
|
||||
use MintyPHP\Repository\Audit\ApiAuditLogRepositoryInterface;
|
||||
use MintyPHP\Service\Audit\ApiAuditService;
|
||||
use MintyPHP\Http\RequestContext;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ApiAuditServiceTest extends TestCase
|
||||
|
||||
@@ -69,4 +69,3 @@ class ImportAuditServiceTest extends TestCase
|
||||
$this->assertStringContainsString('invalid_email', $errorJson);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,4 +62,3 @@ class CsvReaderServiceTest extends TestCase
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace MintyPHP\Tests\Service\Import;
|
||||
|
||||
use MintyPHP\Service\Audit\ImportAuditService;
|
||||
use MintyPHP\Service\Access\PermissionGateway;
|
||||
use MintyPHP\Service\Audit\ImportAuditService;
|
||||
use MintyPHP\Service\Import\CsvReaderService;
|
||||
use MintyPHP\Service\Import\ImportService;
|
||||
use MintyPHP\Service\Import\ImportStateStoreService;
|
||||
|
||||
@@ -44,4 +44,3 @@ class ImportStateStoreServiceTest extends TestCase
|
||||
$this->assertNull($stateStore->getState('token_b'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,4 +53,3 @@ class UserLifecycleJobHandlerTest extends TestCase
|
||||
$this->assertSame('lock_not_acquired', $result['error_code']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user