You are here

class ServiceContainerIntegrationTest in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/service_container/Tests/ServiceContainerIntegrationTest.php \Drupal\service_container\Tests\ServiceContainerIntegrationTest

Hierarchy

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\Tests
View 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

Namesort descending Modifiers Type Description Overrides
ServiceContainerIntegrationTest::getInfo public static function
ServiceContainerIntegrationTest::testInit public function Tests some basic
ServiceContainerIntegrationTestBase::$container protected property The dependency injection container usable in the test.
ServiceContainerIntegrationTestBase::$profile protected property The profile to install as a basis for testing. 1
ServiceContainerIntegrationTestBase::setUp protected function 5