You are here

protected function OptimizedPhpArrayDumperTest::getServiceCall in Zircon Profile 8

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

Helper function to return a service definition.

2 calls to OptimizedPhpArrayDumperTest::getServiceCall()
OptimizedPhpArrayDumperTest::getDefinitionsDataProvider in core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php
Data provider for testGetServiceDefinitions().
OptimizedPhpArrayDumperTest::getParametersDataProvider in core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php
Data provider for testGetParameters().
1 method overrides OptimizedPhpArrayDumperTest::getServiceCall()
PhpArrayDumperTest::getServiceCall in core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/PhpArrayDumperTest.php
Helper function to return a service definition.

File

core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php, line 463
Contains \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest.

Class

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

Namespace

Drupal\Tests\Component\DependencyInjection\Dumper

Code

protected function getServiceCall($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
  return (object) array(
    'type' => 'service',
    'id' => $id,
    'invalidBehavior' => $invalid_behavior,
  );
}