You are here

public function ConfigNamesMapperTest::providerTestHasTranslation in Drupal 8

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

Provides data for for ConfigNamesMapperTest::testHasTranslation().

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 hasTranslation() as the first value and the expected return value of ConfigNamesMapper::hasTranslation() as the second value.

File

core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php, line 622
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 providerTestHasTranslation() {
  return [
    [
      [
        TRUE,
      ],
      TRUE,
    ],
    [
      [
        FALSE,
      ],
      FALSE,
    ],
    [
      [
        TRUE,
        TRUE,
        TRUE,
      ],
      TRUE,
    ],
    [
      [
        FALSE,
        FALSE,
        TRUE,
      ],
      TRUE,
    ],
    [
      [
        FALSE,
        FALSE,
        FALSE,
      ],
      FALSE,
    ],
  ];
}