/** * Tests unsuccessful redirection due to rules admin page location. * * @covers ::execute */ public function testRedirectRulesAdminPage() { $this->currentPathStack->getPath()->willReturn('admin/config/workflow/rules'); $this->action->setContextValue('url', '/test/url'); $this->action->execute(); $this->logger->warning('Skipped page redirect on a rules admin page.')->shouldHaveBeenCalled(); }