Drupal 8  8.0.2
SettingsTest Class Reference
Inheritance diagram for SettingsTest:

Public Member Functions

 testGet ()
 
 testGetAll ()
 
 testGetInstance ()
 
 testGetHashSalt ()
 
 testGetHashSaltEmpty (array $config)
 
 providerTestGetHashSaltEmpty ()
 
 testSerialize ()
 
 testGetApcuPrefix ()
 
- 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

 $config = array()
 
 $settings
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Site

Member Function Documentation

providerTestGetHashSaltEmpty ( )

Data provider for testGetHashSaltEmpty.

Returns
array
setUp ( )
protected

::__construct

References Drupal\config(), and UnitTestCase\randomMachineName().

Here is the call graph for this function:

testGet ( )

::get

References Drupal\config(), and Settings\get().

Here is the call graph for this function:

testGetAll ( )

::getAll

References Drupal\config(), and Settings\getAll().

Here is the call graph for this function:

testGetApcuPrefix ( )

Tests Settings::getApcuPrefix().

::getApcuPrefix

testGetHashSalt ( )

Tests Settings::getHashSalt();

::getHashSalt

References Drupal\config().

Here is the call graph for this function:

testGetHashSaltEmpty ( array  $config)

Tests Settings::getHashSalt() with no hash salt value.

::getHashSalt

providerTestGetHashSaltEmpty

testGetInstance ( )

::getInstance

testSerialize ( )

Ensures settings cannot be serialized.

::__sleep


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