You are here

public function OptimizedPhpArrayDumperTest::testGetAliases in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::testGetAliases()

Tests that alias processing works properly.

@covers ::getAliases

@dataProvider getAliasesDataProvider

File

core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php, line 101
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 testGetAliases($aliases, $definition_aliases) {
  $this->containerDefinition['aliases'] = $definition_aliases;
  $this->containerBuilder
    ->getAliases()
    ->willReturn($aliases);
  $this
    ->assertEquals($this->containerDefinition, $this->dumper
    ->getArray(), 'Expected definition matches dump.');
}