Drupal 8  8.0.2
LanguageNegotiationUrlTest Class Reference
Inheritance diagram for LanguageNegotiationUrlTest:

Public Member Functions

 testPathPrefix ($prefix, $prefixes, $expected_langcode)
 
 providerTestPathPrefix ()
 
 testDomain ($http_host, $domains, $expected_langcode)
 
 providerTestDomain ()
 
- 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

 $languageManager
 
 $user
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

language

Member Function Documentation

providerTestDomain ( )

Provides data for the domain test.

Returns
array An array of data for checking domain negotiation.
providerTestPathPrefix ( )

Provides data for the path prefix test.

Returns
array An array of data for checking path prefix negotiation.
setUp ( )
protected

{}

References Drupal\languageManager(), and Drupal\setContainer().

Here is the call graph for this function:

testDomain (   $http_host,
  $domains,
  $expected_langcode 
)

Test domain language negotiation and outbound path processing.

providerTestDomain

References LanguageNegotiationUrl\CONFIG_DOMAIN, UnitTestCase\getConfigFactoryStub(), Drupal\languageManager(), Cache\PERMANENT, and LanguageInterface\TYPE_URL.

Here is the call graph for this function:

testPathPrefix (   $prefix,
  $prefixes,
  $expected_langcode 
)

Test path prefix language negotiation and outbound path processing.

providerTestPathPrefix

References LanguageNegotiationUrl\CONFIG_PATH_PREFIX, UnitTestCase\getConfigFactoryStub(), Drupal\languageManager(), and LanguageInterface\TYPE_URL.

Here is the call graph for this function:


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