function OptimizedPhpArrayDumperTest::getAliasesDataProvider

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::getAliasesDataProvider()
  2. 8.9.x core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::getAliasesDataProvider()
  3. 11.x core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::getAliasesDataProvider()

Data provider for testGetAliases().

Return value

array[] Returns data-set elements with:

  • aliases as returned by ContainerBuilder.
  • aliases as expected in the container definition.

File

core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php, line 124

Class

OptimizedPhpArrayDumperTest
@coversDefaultClass \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper @group DependencyInjection

Namespace

Drupal\Tests\Component\DependencyInjection\Dumper

Code

public static function getAliasesDataProvider() {
    return [
        [
            [],
            [],
        ],
        [
            [
                'foo' => 'foo.alias',
            ],
            [
                'foo' => 'foo.alias',
            ],
        ],
        [
            [
                'foo' => 'foo.alias',
                'foo.alias' => 'foo.alias.alias',
            ],
            [
                'foo' => 'foo.alias.alias',
                'foo.alias' => 'foo.alias.alias',
            ],
        ],
    ];
}

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