You are here

protected function ContainerTest::getCollection in Zircon Profile 8

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

Helper function to return a machine-optimized collection.

1 call to ContainerTest::getCollection()
ContainerTest::getMockContainerDefinition in core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
Gets a mock container definition.
1 method overrides ContainerTest::getCollection()
PhpArrayContainerTest::getCollection in core/tests/Drupal/Tests/Component/DependencyInjection/PhpArrayContainerTest.php
Helper function to return a machine-optimized '@notation'.

File

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

Class

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

Namespace

Drupal\Tests\Component\DependencyInjection

Code

protected function getCollection($collection, $resolve = TRUE) {
  return (object) array(
    'type' => 'collection',
    'value' => $collection,
    'resolve' => $resolve,
  );
}