You are here

public function ConfigNamesMapperTest::providerTestHasSchema in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest::providerTestHasSchema()

Provides data for ConfigMapperTest::testHasSchema().

Return value

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.

File

core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php, line 513
Contains \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest.

Class

ConfigNamesMapperTest
Tests the functionality provided by the configuration names mapper.

Namespace

Drupal\Tests\config_translation\Unit

Code

public function providerTestHasSchema() {
  return array(
    array(
      array(
        TRUE,
      ),
      TRUE,
    ),
    array(
      array(
        FALSE,
      ),
      FALSE,
    ),
    array(
      array(
        TRUE,
        TRUE,
        TRUE,
      ),
      TRUE,
    ),
    array(
      array(
        TRUE,
        FALSE,
        TRUE,
      ),
      FALSE,
    ),
  );
}