You are here

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

Namesort descending Modifiers Type Description Overrides
IntegrationTest::testGetTestService public function Test whether we can get a service defined in a hook.