public function OptimizedPhpArrayDumperTest::getAliasesDataProvider in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::getAliasesDataProvider()
- 10 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 119 - Contains \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest.
Class
- OptimizedPhpArrayDumperTest
- @coversDefaultClass \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper @group DependencyInjection
Namespace
Drupal\Tests\Component\DependencyInjection\DumperCode
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',
],
],
];
}