Drupal 8  8.0.2
ConfigTest Class Reference
Inheritance diagram for ConfigTest:

Public Member Functions

 testSetName ($name)
 
 setNameProvider ()
 
 testIsNew ()
 
 testSetData ($data)
 
 testSaveNew ($data)
 
 testSaveExisting ($data)
 
 testOverrideData ($data, $module_data, $setting_data)
 
 testSetValue ($data)
 
 testSetValidation ()
 
 testSetIllegalOffsetValue ()
 
 testInitWithData ($data)
 
 testClear ($data)
 
 testNestedClear ($data)
 
 testDelete ($data, $module_data)
 
 testMerge ($data, $data_to_merge, $merged_data)
 
 mergeDataProvider ()
 
 testValidateNameException ($name, $exception_message)
 
 testGetCacheTags ()
 
 validateNameProvider ()
 
 overrideDataProvider ()
 
 simpleDataProvider ()
 
 nestedDataProvider ()
 
 assertConfigDataEquals ($data)
 
 assertOriginalConfigDataEquals ($data, $apply_overrides)
 
 testSafeStringHandling ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Data Fields

return $return
 

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
 
 $storage
 
 $eventDispatcher
 
 $typedConfig
 
 $cacheTagsInvalidator
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Tests the Config.

Config

See Also

Member Function Documentation

assertConfigDataEquals (   $data)

Asserts all config data equals $data provided.

Parameters
array$dataConfig data to be checked.

References Drupal\config().

Referenced by ConfigTest\testDelete(), ConfigTest\testInitWithData(), ConfigTest\testOverrideData(), ConfigTest\testSetData(), and ConfigTest\testSetValue().

Here is the call graph for this function:

Here is the caller graph for this function:

assertOriginalConfigDataEquals (   $data,
  $apply_overrides 
)

Asserts all original config data equals $data provided.

Parameters
array$dataConfig data to be checked.
bool$apply_overridesApply any overrides to the original data.

References Drupal\config().

Referenced by ConfigTest\testDelete(), ConfigTest\testInitWithData(), ConfigTest\testOverrideData(), ConfigTest\testSaveExisting(), and ConfigTest\testSaveNew().

Here is the call graph for this function:

Here is the caller graph for this function:

mergeDataProvider ( )

Provides data to test merges.

See Also
::testMerge()
nestedDataProvider ( )

Provides nested test data.

See Also
::testSetData()
::testSave()
::testSetValue()
::testInitWithData()
::testNestedClear()
overrideDataProvider ( )

Provides override data.

See Also
::testOverrideData()
::testDelete()
setNameProvider ( )

Provides config names to test.

See Also
::testSetName()

References ConfigBase\MAX_NAME_LENGTH.

simpleDataProvider ( )

Provides simple test data.

See Also
::testClear()
testClear (   $data)

::clear simpleDataProvider

References Drupal\config().

Here is the call graph for this function:

testDelete (   $data,
  $module_data 
)

::delete overrideDataProvider

References ConfigTest\assertConfigDataEquals(), ConfigTest\assertOriginalConfigDataEquals(), and Drupal\config().

Here is the call graph for this function:

testGetCacheTags ( )

::getCacheTags

References Drupal\config().

Here is the call graph for this function:

testInitWithData (   $data)

::initWithData nestedDataProvider

References ConfigTest\assertConfigDataEquals(), ConfigTest\assertOriginalConfigDataEquals(), and Drupal\config().

Here is the call graph for this function:

testIsNew ( )

::isNew

References Drupal\config().

Here is the call graph for this function:

testMerge (   $data,
  $data_to_merge,
  $merged_data 
)

::merge mergeDataProvider

References Drupal\config().

Here is the call graph for this function:

testNestedClear (   $data)

::clear nestedDataProvider

References Drupal\config().

Here is the call graph for this function:

testOverrideData (   $data,
  $module_data,
  $setting_data 
)

::setModuleOverride ::setSettingsOverride ::getOriginal overrideDataProvider

References ConfigTest\assertConfigDataEquals(), ConfigTest\assertOriginalConfigDataEquals(), and Drupal\config().

Here is the call graph for this function:

testSafeStringHandling ( )

::setData ::set ::initWithData

References Drupal\config().

Here is the call graph for this function:

testSaveExisting (   $data)

::save nestedDataProvider

References ConfigTest\assertOriginalConfigDataEquals(), and Drupal\config().

Here is the call graph for this function:

testSaveNew (   $data)

::save nestedDataProvider

References ConfigTest\assertOriginalConfigDataEquals(), and Drupal\config().

Here is the call graph for this function:

testSetData (   $data)

::setData nestedDataProvider

References ConfigTest\assertConfigDataEquals(), and Drupal\config().

Here is the call graph for this function:

testSetIllegalOffsetValue ( )

::set PHPUnit_Framework_Error_Warning

References Drupal\config().

Here is the call graph for this function:

testSetName (   $name)

::setName setNameProvider

References Drupal\config().

Here is the call graph for this function:

testSetValidation ( )

::set

References Drupal\config().

Here is the call graph for this function:

testSetValue (   $data)

::set nestedDataProvider

References ConfigTest\assertConfigDataEquals(), and Drupal\config().

Here is the call graph for this function:

testValidateNameException (   $name,
  $exception_message 
)

::validateName validateNameProvider

References Drupal\config().

Here is the call graph for this function:

validateNameProvider ( )

Provides data to test name validation.

See Also
::testValidateNameException()

References ConfigBase\MAX_NAME_LENGTH.


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