Drupal 8  8.0.2
RouteProviderTest Class Reference
Inheritance diagram for RouteProviderTest:

Public Member Functions

 containerBuild (ContainerBuilder $container)
 
 testCandidateOutlines ()
 
 testEmptyPathCandidatesOutlines ()
 
 testExactPathMatch ()
 
 testOutlinePathMatch ()
 
 testOutlinePathMatchTrailingSlash ()
 
 testOutlinePathMatchDefaults ()
 
 testOutlinePathMatchDefaultsCollision ()
 
 testOutlinePathMatchDefaultsCollision2 ()
 
 testOutlinePathMatchDefaultsCollision3 ()
 
 testOutlinePathMatchZero ()
 
 testOutlinePathNoMatch ()
 
 testRouteByName ()
 
 testGetRoutesByPatternWithLongPatterns ()
 
 testGetRoutesPaged ()
 

Static Public Attributes

static $modules = ['url_alter_test', 'system']
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

 $fixtures
 
 $state
 
 $currentPath
 
 $cache
 
 $pathProcessor
 
 $cacheTagsInvalidator
 

Detailed Description

Confirm that the default route provider is working correctly.

Routing

Member Function Documentation

containerBuild ( ContainerBuilder  $container)

{}

setUp ( )
protected

{}

References Drupal\cache(), Drupal\service(), and Drupal\state().

Here is the call graph for this function:

testCandidateOutlines ( )

Confirms that the correct candidate outlines are generated.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testEmptyPathCandidatesOutlines ( )

Don't fail when given an empty path.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testExactPathMatch ( )

Confirms that we can find routes with the exact incoming path.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testGetRoutesByPatternWithLongPatterns ( )

Ensures that the routing system is capable of extreme long patterns.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testGetRoutesPaged ( )

Tests getRoutesPaged().

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testOutlinePathMatch ( )

Confirms that we can find routes whose pattern would match the request.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testOutlinePathMatchDefaults ( )

Confirms that we can find routes whose pattern would match the request.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testOutlinePathMatchDefaultsCollision ( )

Confirms that we can find routes whose pattern would match the request.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testOutlinePathMatchDefaultsCollision2 ( )

Confirms that we can find routes whose pattern would match the request.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testOutlinePathMatchDefaultsCollision3 ( )

Confirms that we can find multiple routes that match the request equally.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testOutlinePathMatchTrailingSlash ( )

Confirms that a trailing slash on the request doesn't result in a 404.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testOutlinePathMatchZero ( )

Tests a route with a 0 as value.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testOutlinePathNoMatch ( )

Confirms that an exception is thrown when no matching path is found.

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

testRouteByName ( )

Test RouteProvider::getRouteByName() and RouteProvider::getRoutesByNames().

References Drupal\cache(), Database\getConnection(), and Drupal\state().

Here is the call graph for this function:

Field Documentation

$modules = ['url_alter_test', 'system']
static

Modules to enable.


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