function ConfigNamesMapperTest::providerTestHasTranslatable

Same name in other branches
  1. 8.9.x core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest::providerTestHasTranslatable()
  2. 10 core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest::providerTestHasTranslatable()
  3. 11.x 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 574

Class

ConfigNamesMapperTest
Tests the functionality provided by the configuration names mapper.

Namespace

Drupal\Tests\config_translation\Unit

Code

public function providerTestHasTranslatable() {
    return [
        [
            [],
            FALSE,
        ],
        [
            [
                TRUE,
            ],
            TRUE,
        ],
        [
            [
                FALSE,
            ],
            FALSE,
        ],
        [
            [
                TRUE,
                TRUE,
                TRUE,
            ],
            TRUE,
        ],
        [
            [
                FALSE,
                FALSE,
                FALSE,
            ],
            FALSE,
        ],
        [
            [
                TRUE,
                FALSE,
                TRUE,
            ],
            TRUE,
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.