public function CachedContainerBuilderTest::setUp in Service Container 7.2
Same name and namespace in other branches
- 7 tests/src/DependencyInjection/CachedContainerBuilderTest.php \Drupal\Tests\service_container\DependencyInjection\CachedContainerBuilderTest::setUp()
File
- tests/
src/ DependencyInjection/ CachedContainerBuilderTest.php, line 36 - Contains \Drupal\Tests\service_container\DependencyInjection\CachedContainerBuilderTest
Class
- CachedContainerBuilderTest
- @coversDefaultClass \Drupal\service_container\DependencyInjection\CachedContainerBuilder @group dic
Namespace
Drupal\Tests\service_container\DependencyInjectionCode
public function setUp() {
// Setup the serviceProviderManager that returns no services.
$service_provider_manager = Mockery::mock('\\Drupal\\Component\\Plugin\\PluginManagerInterface', array(
'getDefinitions' => array(),
'getDefinition' => array(),
'hasDefinition' => FALSE,
'createInstance' => NULL,
'getInstance' => NULL,
));
$this->serviceProviderManager = $service_provider_manager;
}