protected function ContainerTest::getCollection in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\DependencyInjectionCode
protected function getCollection($collection, $resolve = TRUE) {
return (object) array(
'type' => 'collection',
'value' => $collection,
'resolve' => $resolve,
);
}