class ServiceContainerIntegrationTest in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/service_container/Tests/ServiceContainerIntegrationTest.php \Drupal\service_container\Tests\ServiceContainerIntegrationTest
Hierarchy
- class \Drupal\service_container\Tests\ServiceContainerIntegrationTestBase extends \Drupal\service_container\Tests\DrupalWebTestCase
- class \Drupal\service_container\Tests\ServiceContainerIntegrationTest
Expanded class hierarchy of ServiceContainerIntegrationTest
File
- lib/
Drupal/ service_container/ Tests/ ServiceContainerIntegrationTest.php, line 10 - Contains \Drupal\service_container\Tests\ServiceContainerIntegrationTest.
Namespace
Drupal\service_container\TestsView source
class ServiceContainerIntegrationTest extends ServiceContainerIntegrationTestBase {
/**
* {@inheritdoc}
*/
public static function getInfo() {
return array(
'name' => 'ServiceContainer',
'description' => 'Tests the \\ServiceContainer class',
'group' => 'service_container',
);
}
/**
* Tests some basic
*/
public function testInit() {
$this
->assertTrue(\Drupal::hasService('service_container'));
$this
->assertTrue(\Drupal::hasService('module_handler'));
$this
->assertTrue(\Drupal::hasService('module_installer'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceContainerIntegrationTest:: |
public static | function | ||
ServiceContainerIntegrationTest:: |
public | function | Tests some basic | |
ServiceContainerIntegrationTestBase:: |
protected | property | The dependency injection container usable in the test. | |
ServiceContainerIntegrationTestBase:: |
protected | property | The profile to install as a basis for testing. | 1 |
ServiceContainerIntegrationTestBase:: |
protected | function | 5 |