diff --git a/tests/Security/Handler/AclSecurityHandlerTest.php b/tests/Security/Handler/AclSecurityHandlerTest.php index 4696b4730b..d2b4eeccb8 100644 --- a/tests/Security/Handler/AclSecurityHandlerTest.php +++ b/tests/Security/Handler/AclSecurityHandlerTest.php @@ -143,21 +143,6 @@ public function testAddObjectOwnerParamMustBeMutableAclInterface(): void $handler->addObjectOwner($this->createStub(AclInterface::class)); } - public function testUpdateAclMustOnlyAcceptMutableAclInterface(): void - { - $this->expectWarning(); - $this->expectWarningMessage('assert(): assert($acl instanceof MutableAclInterface) failed'); - $handler = new AclSecurityHandler( - $this->getTokenStorageMock(), - $this->getAuthorizationCheckerMock(), - $this->getMockForAbstractClass(MutableAclProviderInterface::class), - MaskBuilder::class, - [] - ); - $acl = $this->createStub(AclInterface::class); - $handler->updateAcl($acl); - } - public function testSuccerfulUpdateAcl(): void { $acl = $this->createStub(MutableAclInterface::class);