You are here

public function ContainerTest::testResolveServicesAndParametersForRawArgument in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php \Drupal\Tests\Component\DependencyInjection\ContainerTest::testResolveServicesAndParametersForRawArgument()
  2. 10 core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php \Drupal\Tests\Component\DependencyInjection\ContainerTest::testResolveServicesAndParametersForRawArgument()

Tests that raw type services arguments are resolved correctly.

@covers ::get @covers ::createService @covers ::resolveServicesAndParameters

File

core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php, line 681
Contains \Drupal\Tests\Component\DependencyInjection\ContainerTest.

Class

ContainerTest
@coversDefaultClass \Drupal\Component\DependencyInjection\Container @group DependencyInjection

Namespace

Drupal\Tests\Component\DependencyInjection

Code

public function testResolveServicesAndParametersForRawArgument() {
  $this
    ->assertEquals([
    'ccc',
  ], $this->container
    ->get('service_with_raw_argument')
    ->getArguments());
}