function DbtngExampleRepositoryTest::setUp
Kernel tests do not invoke hook_schema() or hook_install(). This must be done when tests are set up.
File
-
modules/
dbtng_example/ tests/ src/ Kernel/ DbtngExampleRepositoryTest.php, line 37
Class
- DbtngExampleRepositoryTest
- Kernel testing of the DbtngExampleRepository service.
Namespace
Drupal\Tests\dbtng_example\KernelCode
protected function setUp() : void {
parent::setUp();
// Install the schema we defined in hook_schema().
$this->installSchema('dbtng_example', 'dbtng_example');
// Invoke hook_install().
$this->container
->get('module_handler')
->invoke('dbtng_example', 'install');
}