public function ConfigNamesMapperTest::providerTestHasTranslatable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest::providerTestHasTranslatable()
Provides data for ConfigNamesMapperTest::testHasTranslatable().
Return value
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.
File
- core/
modules/ config_translation/ tests/ src/ Unit/ ConfigNamesMapperTest.php, line 560 - Contains \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest.
Class
- ConfigNamesMapperTest
- Tests the functionality provided by the configuration names mapper.
Namespace
Drupal\Tests\config_translation\UnitCode
public function providerTestHasTranslatable() {
return array(
array(
array(),
FALSE,
),
array(
array(
TRUE,
),
TRUE,
),
array(
array(
FALSE,
),
FALSE,
),
array(
array(
TRUE,
TRUE,
TRUE,
),
TRUE,
),
array(
array(
FALSE,
FALSE,
FALSE,
),
FALSE,
),
array(
array(
TRUE,
FALSE,
TRUE,
),
TRUE,
),
);
}