Drupal 8  8.0.2
PathBasedBreadcrumbBuilderTest Class Reference
Inheritance diagram for PathBasedBreadcrumbBuilderTest:

Public Member Functions

 testBuildOnFrontpage ()
 
 testBuildWithOnePathElement ()
 
 testBuildWithTwoPathElements ()
 
 testBuildWithThreePathElements ()
 
 testBuildWithException ($exception_class, $exception_argument)
 
 providerTestBuildWithException ()
 
 testBuildWithNonProcessedPath ()
 
 testApplies ()
 
 testBuildWithUserPath ()
 
 setupAccessManagerToAllow ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 setupStubPathProcessor ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $builder
 
 $titleResolver
 
 $accessManager
 
 $requestMatcher
 
 $context
 
 $currentUser
 
 $pathProcessor
 
 $currentPath
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

system

Member Function Documentation

providerTestBuildWithException ( )

Provides exception types for testBuildWithException.

Returns
array The list of exception test cases.
See Also
::testBuildWithException()
setUp ( )
protected

{}

::__construct

References Drupal\accessManager(), Drupal\currentUser(), UnitTestCase\getConfigFactoryStub(), UnitTestCase\getStringTranslationStub(), and Drupal\setContainer().

Here is the call graph for this function:

setupAccessManagerToAllow ( )

Setup the access manager to always allow access to routes.

References Drupal\accessManager().

Referenced by PathBasedBreadcrumbBuilderTest\testBuildWithTwoPathElements(), and PathBasedBreadcrumbBuilderTest\testBuildWithUserPath().

Here is the call graph for this function:

Here is the caller graph for this function:

testApplies ( )

Tests the applied method.

::applies

testBuildOnFrontpage ( )

Tests the build method on the frontpage.

::build

References Cache\PERMANENT.

testBuildWithException (   $exception_class,
  $exception_argument 
)

Tests that exceptions during request matching are caught.

::build ::getRequestForPath

providerTestBuildWithException

References Cache\PERMANENT.

testBuildWithNonProcessedPath ( )

Tests the build method with a non processed path.

::build ::getRequestForPath

References Cache\PERMANENT.

testBuildWithOnePathElement ( )

Tests the build method with one path element.

::build

References Cache\PERMANENT.

testBuildWithThreePathElements ( )

Tests the build method with three path elements.

::build ::getRequestForPath

References Drupal\accessManager(), AccessResult\allowed(), and Cache\PERMANENT.

Here is the call graph for this function:

testBuildWithTwoPathElements ( )

Tests the build method with two path elements.

::build ::getRequestForPath

References Cache\PERMANENT, and PathBasedBreadcrumbBuilderTest\setupAccessManagerToAllow().

Here is the call graph for this function:

testBuildWithUserPath ( )

Tests the breadcrumb for a user path.

::build ::getRequestForPath

References Cache\PERMANENT, and PathBasedBreadcrumbBuilderTest\setupAccessManagerToAllow().

Here is the call graph for this function:


The documentation for this class was generated from the following file: