Drupal 8  8.0.2
LocaleLookupTest Class Reference
Inheritance diagram for LocaleLookupTest:

Public Member Functions

 testResolveCacheMissWithoutFallback ()
 
 testResolveCacheMissWithFallback ($langcode, $string, $context, $expected)
 
 resolveCacheMissWithFallbackProvider ()
 
 testResolveCacheMissWithPersist ()
 
 testResolveCacheMissNoTranslation ()
 
- 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

 $storage
 
 $cache
 
 $lock
 
 $user
 
 $configFactory
 
 $languageManager
 
 $requestStack
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

locale

Member Function Documentation

resolveCacheMissWithFallbackProvider ( )

Provides test data for testResolveCacheMissWithFallback().

setUp ( )
protected

{}

References Drupal\cache(), Drupal\configFactory(), UnitTestCase\getConfigFactoryStub(), Drupal\languageManager(), Drupal\lock(), Drupal\requestStack(), and Drupal\setContainer().

Here is the call graph for this function:

testResolveCacheMissNoTranslation ( )

Tests locale lookups without a found translation.

::resolveCacheMiss

References Drupal\cache(), Drupal\configFactory(), Drupal\languageManager(), Drupal\lock(), and Drupal\requestStack().

Here is the call graph for this function:

testResolveCacheMissWithFallback (   $langcode,
  $string,
  $context,
  $expected 
)

Tests locale lookups with fallback.

Note that context is irrelevant here. It is not used but it is required.

::resolveCacheMiss

resolveCacheMissWithFallbackProvider

References Drupal\cache(), Drupal\configFactory(), Drupal\languageManager(), Drupal\lock(), and Drupal\requestStack().

Here is the call graph for this function:

testResolveCacheMissWithoutFallback ( )

Tests locale lookups without fallback.

::resolveCacheMiss

References Drupal\cache(), Drupal\configFactory(), Drupal\languageManager(), Drupal\lock(), and Drupal\requestStack().

Here is the call graph for this function:

testResolveCacheMissWithPersist ( )

Tests locale lookups with persistent tracking.

::resolveCacheMiss

References Drupal\cache(), Drupal\configFactory(), UnitTestCase\getConfigFactoryStub(), Drupal\languageManager(), Drupal\lock(), and Drupal\requestStack().

Here is the call graph for this function:


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