public function ServiceContainerSymfonyTest::testInit in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Drupal/service_container_symfony/Tests/ServiceContainerSymfonyTest.php \Drupal\service_container_symfony\Tests\ServiceContainerSymfonyTest::testInit()
Tests some basic
File
- modules/
providers/ service_container_symfony/ lib/ Drupal/ service_container_symfony/ Tests/ ServiceContainerSymfonyTest.php, line 37 - Contains \Drupal\service_container_symfony\Tests\ServiceContainerSymfonyTest.
Class
Namespace
Drupal\service_container_symfony\TestsCode
public function testInit() {
$this
->assertTrue(\Drupal::hasService('service_container_symfony_test_yolo'));
$this
->assertFalse(\Drupal::hasService('service_container_symfony_test_yolo1'));
}