You are here

public function OptimizedPhpArrayDumperTest::getAliasesDataProvider in Drupal 9

Same name and namespace in other branches
  1. 8 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 122
Contains \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest.

Class

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

Namespace

Drupal\Tests\Component\DependencyInjection\Dumper

Code

public 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',
      ],
    ],
  ];
}