Drupal 8  8.0.2
PathValidatorTest Class Reference
Inheritance diagram for PathValidatorTest:

Public Member Functions

 testIsValidWithFrontpage ()
 
 testIsValidWithNone ()
 
 testIsValidWithExternalUrl ()
 
 testIsValidWithInvalidExternalUrl ()
 
 testIsValidWithLinkToAnyPageAccount ()
 
 testIsValidWithoutLinkToAnyPageAccount ()
 
 testIsValidWithPathAlias ()
 
 testIsValidWithAccessDenied ()
 
 testIsValidWithResourceNotFound ()
 
 testIsValidWithParamNotConverted ()
 
 testIsValidWithMethodNotAllowed ()
 
 testIsValidWithFailingParameterConverting ()
 
 testIsValidWithNotExistingPath ()
 
 testGetUrlIfValidWithAccess ()
 
 testGetUrlIfValidWithQuery ()
 
 testGetUrlIfValidWithoutAccess ()
 
 testGetUrlIfValidWithFrontPageAndQueryAndFragments ()
 
 testGetUrlIfValidWithoutAccessCheck ()
 
- 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 ()
 

Protected Attributes

 $accessAwareRouter
 
 $accessUnawareRouter
 
 $account
 
 $pathProcessor
 
 $pathValidator
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Routing

Member Function Documentation

setUp ( )
protected

{}

References Drupal\pathValidator().

Here is the call graph for this function:

testGetUrlIfValidWithAccess ( )

Tests the getUrlIfValid() method when there is access.

::getUrlIfValid ::getPathAttributes

References Drupal\pathValidator().

Here is the call graph for this function:

testGetUrlIfValidWithFrontPageAndQueryAndFragments ( )

Tests the getUrlIfValid() method with a front page + query + fragments.

::getUrlIfValid

References Drupal\pathValidator().

Here is the call graph for this function:

testGetUrlIfValidWithoutAccess ( )

Tests the getUrlIfValid() method where there is no access.

::getUrlIfValid

References Drupal\pathValidator().

Here is the call graph for this function:

testGetUrlIfValidWithoutAccessCheck ( )

Tests the getUrlIfValidWithoutAccessCheck() method.

::getUrlIfValidWithoutAccessCheck ::getPathAttributes

References Drupal\pathValidator().

Here is the call graph for this function:

testGetUrlIfValidWithQuery ( )

Tests the getUrlIfValid() method with a query in the path.

::getUrlIfValid

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithAccessDenied ( )

Tests the isValid() method with a user without access to the path.

::isValid ::getPathAttributes

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithExternalUrl ( )

Tests the isValid() method for an external URL.

::isValid

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithFailingParameterConverting ( )

Tests the isValid() method with a not working param converting.

::isValid

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithFrontpage ( )

Tests the isValid() method for the frontpage.

::isValid

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithInvalidExternalUrl ( )

Tests the isValid() method with an invalid external URL.

::isValid

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithLinkToAnyPageAccount ( )

Tests the isValid() method with a 'link to any page' permission.

::isValid ::getPathAttributes

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithMethodNotAllowed ( )

::isValid ::getPathAttributes

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithNone ( )

Tests the isValid() method for <none> (used for jumplinks).

::isValid

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithNotExistingPath ( )

Tests the isValid() method with a not existing path.

::isValid

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithoutLinkToAnyPageAccount ( )

Tests the isValid() method without the 'link to any page' permission.

::isValid

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithParamNotConverted ( )

::isValid ::getPathAttributes

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithPathAlias ( )

Tests the isValid() method with a path alias.

::isValid

References Drupal\pathValidator().

Here is the call graph for this function:

testIsValidWithResourceNotFound ( )

::isValid ::getPathAttributes

References Drupal\pathValidator().

Here is the call graph for this function:


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