function SystemPageRedirectTest::testRedirectRulesAdminPage
Tests unsuccessful redirection due to rules admin page location.
@covers ::execute
File
-
tests/
src/ Unit/ Integration/ RulesAction/ SystemPageRedirectTest.php, line 128
Class
- SystemPageRedirectTest
- @coversDefaultClass \Drupal\rules\Plugin\RulesAction\SystemPageRedirect @group RulesAction
Namespace
Drupal\Tests\rules\Unit\Integration\RulesActionCode
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();
}