public function ConfigInstallTest::testInstall in Panopoly 8.2
Installs the module.
Any schema and dependency errors will throw an exception.
We install this way to replicate normal installation process. Installing the config directly for all dependencies via self::$modules prevents the entity_embed module from generating derivatives and causing failures.
File
- modules/
panopoly/ panopoly_media/ tests/ src/ Kernel/ ConfigInstallTest.php, line 37
Class
- ConfigInstallTest
- Tests that the module's config does have errors.
Namespace
Drupal\Tests\panopoly_media\KernelCode
public function testInstall() {
$this
->installConfig(self::$modules);
$install = [
'image',
'file',
'views',
// Contrib.
'media',
'embed',
'entity_embed',
'entity_browser',
'dropzonejs',
'dropzonejs_eb_widget',
'video_embed_field',
'video_embed_media',
'panopoly_media',
];
$this->container
->get('module_installer')
->install($install);
}