NodeorderInstallTestBase.php in Node Order 8
File
tests/src/Kernel/NodeorderInstallTestBase.php
View source
<?php
namespace Drupal\Tests\nodeorder\Kernel;
use Drupal\KernelTests\KernelTestBase;
abstract class NodeorderInstallTestBase extends KernelTestBase {
public static $modules = [
'system',
'filter',
'text',
'taxonomy',
'user',
];
protected $moduleInstaller;
protected $database;
protected function setUp() {
parent::setUp();
$this->moduleInstaller = $this->container
->get('module_installer');
$this->database = $this->container
->get('database');
$this
->installEntitySchema('user');
$this
->installSchema('user', [
'users_data',
]);
$this
->installEntitySchema('taxonomy_term');
$this
->installConfig([
'filter',
'user',
'taxonomy',
]);
module_load_install('nodeorder');
$this->moduleInstaller
->install([
'nodeorder',
]);
}
}