Drupal 8  8.0.2
ConfigNamesMapperTest Class Reference
Inheritance diagram for ConfigNamesMapperTest:

Public Member Functions

 testGetTitle ()
 
 testGetBaseRouteName ()
 
 testGetBaseRouteParameters ()
 
 testGetBaseRoute ()
 
 testGetBasePath ()
 
 testGetOverviewRouteName ()
 
 testGetOverviewRouteParameters ()
 
 testGetOverviewRoute ()
 
 testGetOverviewPath ()
 
 testGetAddRouteName ()
 
 testGetAddRouteParameters ()
 
 testGetAddRoute ()
 
 testGetEditRouteName ()
 
 testGetEditRouteParameters ()
 
 testGetEditRoute ()
 
 testGetDeleteRouteName ()
 
 testGetDeleteRouteParameters ()
 
 testGetDeleteRoute ()
 
 testGetConfigNames ()
 
 testAddConfigName ()
 
 testGetWeight ()
 
 testPopulateFromRouteMatch ()
 
 testGetTypeLabel ()
 
 testGetLangcode ()
 
 testGetConfigData ()
 
 testHasSchema (array $mock_return_values, $expected)
 
 providerTestHasSchema ()
 
 testHasTranslatable (array $mock_return_values, $expected)
 
 providerTestHasTranslatable ()
 
 testHasTranslation (array $mock_return_values, $expected)
 
 providerTestHasTranslation ()
 
 testGetTypeName ()
 
 testGetOperations ()
 
- 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

 $pluginDefinition
 
 $configNamesMapper
 
 $localeConfigManager
 
 $typedConfigManager
 
 $configMapperManager
 
 $baseRoute
 
 $routeProvider
 
 $urlGenerator
 
 $languageManager
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Tests the functionality provided by the configuration names mapper.

config_translation

Member Function Documentation

providerTestHasSchema ( )

Provides data for ConfigMapperTest::testHasSchema().

Returns
array An array of arrays, where each inner array has an array of values that the mocked locale configuration manager should return for hasConfigSchema() as the first value and the expected return value of ConfigNamesMapper::hasSchema() as the second value.
providerTestHasTranslatable ( )

Provides data for ConfigNamesMapperTest::testHasTranslatable().

Returns
array An array of arrays, where each inner array has an array of values that the mocked configuration mapper manager should return for hasTranslatable() as the first value and the expected return value of ConfigNamesMapper::hasTranslatable() as the second value.
providerTestHasTranslation ( )

Provides data for for ConfigNamesMapperTest::testHasTranslation().

Returns
array An array of arrays, where each inner array has an array of values that the mocked configuration mapper manager should return for hasTranslation() as the first value and the expected return value of ConfigNamesMapper::hasTranslation() as the second value.
testAddConfigName ( )
testGetAddRoute ( )
testGetAddRouteName ( )
testGetAddRouteParameters ( )
testGetBasePath ( )

Tests ConfigNamesMapper::getBasePath().

References Drupal\urlGenerator().

Here is the call graph for this function:

testGetBaseRoute ( )
testGetBaseRouteName ( )
testGetBaseRouteParameters ( )
testGetConfigData ( )

Tests ConfigNamesMapper::getConfigData().

References UnitTestCase\getConfigFactoryStub().

Here is the call graph for this function:

testGetConfigNames ( )
testGetDeleteRoute ( )

Tests ConfigNamesMapper::getRoute().

testGetDeleteRouteName ( )
testGetDeleteRouteParameters ( )
testGetEditRoute ( )
testGetEditRouteName ( )
testGetEditRouteParameters ( )
testGetLangcode ( )

Tests ConfigNamesMapper::getLangcode().

References UnitTestCase\getConfigFactoryStub().

Here is the call graph for this function:

testGetOperations ( )

Tests ConfigNamesMapper::hasTranslation().

References Url\fromRoute().

Here is the call graph for this function:

testGetOverviewPath ( )

Tests ConfigNamesMapper::getOverviewPath().

References Drupal\urlGenerator().

Here is the call graph for this function:

testGetOverviewRoute ( )
testGetOverviewRouteName ( )
testGetOverviewRouteParameters ( )
testGetTitle ( )
testGetTypeLabel ( )
testGetTypeName ( )
testGetWeight ( )
testHasSchema ( array  $mock_return_values,
  $expected 
)

Tests ConfigNamesMapper::hasSchema().

Parameters
array$mock_return_valuesAn array of values that the mocked locale configuration manager should return for hasConfigSchema().
bool$expectedThe expected return value of ConfigNamesMapper::hasSchema().

providerTestHasSchema

testHasTranslatable ( array  $mock_return_values,
  $expected 
)

Tests ConfigNamesMapper::hasTranslatable().

Parameters
array$mock_return_valuesAn array of values that the mocked configuration mapper manager should return for hasTranslatable().
bool$expectedThe expected return value of ConfigNamesMapper::hasTranslatable().

providerTestHasTranslatable

testHasTranslation ( array  $mock_return_values,
  $expected 
)

Tests ConfigNamesMapper::hasTranslation().

Parameters
array$mock_return_valuesAn array of values that the mocked configuration mapper manager should return for hasTranslation().
bool$expectedThe expected return value of ConfigNamesMapper::hasTranslation().

providerTestHasTranslation

testPopulateFromRouteMatch ( )

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