function SystemPageRedirectTest::testRedirectBatch
Tests unsuccessful redirection due to ongoing batch process.
@covers ::execute
File
-
tests/
src/ Unit/ Integration/ RulesAction/ SystemPageRedirectTest.php, line 113
Class
- SystemPageRedirectTest
- @coversDefaultClass \Drupal\rules\Plugin\RulesAction\SystemPageRedirect @group RulesAction
Namespace
Drupal\Tests\rules\Unit\Integration\RulesActionCode
public function testRedirectBatch() {
$this->currentPathStack
->getPath()
->willReturn('some/random/test/path');
batch_set('Test batch!');
$this->action
->setContextValue('url', '/test/url');
$this->action
->execute();
$this->logger
->warning('Skipped page redirect during batch processing.')
->shouldHaveBeenCalled();
}