public function IntegrationTest::testGetTestService in Little helpers 7.2
Test whether we can get a service defined in a hook.
File
- tests/
Services/ IntegrationTest.php, line 15
Class
- IntegrationTest
- Interation tests for the global container instance.
Namespace
Drupal\little_helpers\ServicesCode
public function testGetTestService() {
$loader = Container::get()
->loadService('little_helpers_test.loader');
$this
->assertNotEmpty($loader);
$this
->assertInstanceOf(Container::class, $loader);
}