You are here

protected function CustomPageExceptionHtmlSubscriberTest::setupStubAliasManager in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/EventSubscriber/CustomPageExceptionHtmlSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\CustomPageExceptionHtmlSubscriberTest::setupStubAliasManager()

Sets up an alias manager that does nothing.

2 calls to CustomPageExceptionHtmlSubscriberTest::setupStubAliasManager()
CustomPageExceptionHtmlSubscriberTest::testHandleWithGetRequest in core/tests/Drupal/Tests/Core/EventSubscriber/CustomPageExceptionHtmlSubscriberTest.php
Tests onHandleException with a GET request.
CustomPageExceptionHtmlSubscriberTest::testHandleWithPostRequest in core/tests/Drupal/Tests/Core/EventSubscriber/CustomPageExceptionHtmlSubscriberTest.php
Tests onHandleException with a POST request.

File

core/tests/Drupal/Tests/Core/EventSubscriber/CustomPageExceptionHtmlSubscriberTest.php, line 105
Contains \Drupal\Tests\Core\EventSubscriber\CustomPageExceptionHtmlSubscriberTest.

Class

CustomPageExceptionHtmlSubscriberTest
@coversDefaultClass \Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber @group EventSubscriber

Namespace

Drupal\Tests\Core\EventSubscriber

Code

protected function setupStubAliasManager() {
  $this->aliasManager
    ->expects($this
    ->any())
    ->method('getPathByAlias')
    ->willReturnArgument(0);
}