class IntegrationTest in Little helpers 7.2
Interation tests for the global container instance.
Hierarchy
- class \Drupal\little_helpers\Services\IntegrationTest extends \Upal\DrupalUnitTestCase
Expanded class hierarchy of IntegrationTest
File
- tests/
Services/ IntegrationTest.php, line 10
Namespace
Drupal\little_helpers\ServicesView source
class IntegrationTest extends DrupalUnitTestCase {
/**
* Test whether we can get a service defined in a hook.
*/
public function testGetTestService() {
$loader = Container::get()
->loadService('little_helpers_test.loader');
$this
->assertNotEmpty($loader);
$this
->assertInstanceOf(Container::class, $loader);
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
IntegrationTest:: |
public | function | Test whether we can get a service defined in a hook. |