protected function BundlePluginTest::setUp in Entity API 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ BundlePluginTest.php, line 26
Class
- BundlePluginTest
- Tests the bundle plugin API.
Namespace
Drupal\Tests\entity\KernelCode
protected function setUp() {
parent::setUp();
// Install the modules properly. Putting them into static::$modules doesn't trigger the install
// hooks, like hook_modules_installed, so entity_modules_installed is not triggered().
/** @var \Drupal\Core\Extension\ModuleInstallerInterface $module_installer */
$module_installer = $this->container
->get('module_installer');
$module_installer
->install([
'entity_module_bundle_plugin_test',
'entity_module_bundle_plugin_examples_test',
]);
}