Loading core/modules/menu_link_content/tests/src/Unit/MenuLinkContentEntityAccessTest.php +3 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,9 @@ public function testUnrecognizedOperation(): void { ->willReturn($language); $account = $this->createMock(AccountInterface::class); $account->expects($this->atLeastOnce()) ->method('id') ->willReturn(42); $accessControl = new MenuLinkContentAccessControlHandler($entityType, $accessManager); $accessControl->setModuleHandler($moduleHandler); $access = $accessControl->access($entity, 'not-an-op', $account, TRUE); Loading Loading
core/modules/menu_link_content/tests/src/Unit/MenuLinkContentEntityAccessTest.php +3 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,9 @@ public function testUnrecognizedOperation(): void { ->willReturn($language); $account = $this->createMock(AccountInterface::class); $account->expects($this->atLeastOnce()) ->method('id') ->willReturn(42); $accessControl = new MenuLinkContentAccessControlHandler($entityType, $accessManager); $accessControl->setModuleHandler($moduleHandler); $access = $accessControl->access($entity, 'not-an-op', $account, TRUE); Loading