Drupal 8  8.0.2
ForumNodeBreadcrumbBuilderTest Class Reference
Inheritance diagram for ForumNodeBreadcrumbBuilderTest:

Public Member Functions

 testApplies ($expected, $route_name=NULL, $parameter_map=array())
 
 providerTestApplies ()
 
 testBuild ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

forum

Member Function Documentation

providerTestApplies ( )

Provides test data for testApplies().

Note that this test is incomplete, because we can't mock NodeInterface.

Returns
array Array of datasets for testApplies(). Structured as such:
  • ForumNodeBreadcrumbBuilder::applies() expected result.
  • ForumNodeBreadcrumbBuilder::applies() $attributes input array.
setUp ( )
protected

{}

References Drupal\setContainer().

Here is the call graph for this function:

testApplies (   $expected,
  $route_name = NULL,
  $parameter_map = array() 
)

Tests ForumNodeBreadcrumbBuilder::applies().

Parameters
bool$expectedForumNodeBreadcrumbBuilder::applies() expected result.
string | null$route_name(optional) A route name.
array$parameter_map(optional) An array of parameter names and values.

providerTestApplies ::applies

References UnitTestCase\getConfigFactoryStub().

Here is the call graph for this function:

testBuild ( )

Tests ForumNodeBreadcrumbBuilder::build().

See Also
::build() ::build

References Link\createFromRoute(), UnitTestCase\getConfigFactoryStub(), UnitTestCase\getStringTranslationStub(), and Cache\PERMANENT.

Here is the call graph for this function:


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