You are here

protected function PathBasedBreadcrumbBuilderTest::setupStubPathProcessor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php \Drupal\Tests\system\Unit\Breadcrumbs\PathBasedBreadcrumbBuilderTest::setupStubPathProcessor()
4 calls to PathBasedBreadcrumbBuilderTest::setupStubPathProcessor()
PathBasedBreadcrumbBuilderTest::testBuildWithException in core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
Tests that exceptions during request matching are caught.
PathBasedBreadcrumbBuilderTest::testBuildWithThreePathElements in core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
Tests the build method with three path elements.
PathBasedBreadcrumbBuilderTest::testBuildWithTwoPathElements in core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
Tests the build method with two path elements.
PathBasedBreadcrumbBuilderTest::testBuildWithUserPath in core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
Tests the breadcrumb for a user path.

File

core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php, line 381
Contains \Drupal\Tests\system\Unit\Breadcrumbs\PathBasedBreadcrumbBuilderTest.

Class

PathBasedBreadcrumbBuilderTest
@coversDefaultClass \Drupal\system\PathBasedBreadcrumbBuilder @group system

Namespace

Drupal\Tests\system\Unit\Breadcrumbs

Code

protected function setupStubPathProcessor() {
  $this->pathProcessor
    ->expects($this
    ->any())
    ->method('processInbound')
    ->will($this
    ->returnArgument(0));
}