public function OptionalDependencyCalculationTest::setUp in Acquia Content Hub 8.2
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ OptionalDependencyCalculationTest.php, line 51
Class
- OptionalDependencyCalculationTest
- Tests Optional Dependency Calculation for given entity.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
public function setUp() {
parent::setUp();
$this
->installSchema('acquia_contenthub_publisher', [
'acquia_contenthub_publisher_export_tracking',
]);
$this
->installConfig('node');
$this
->installConfig('field');
$this
->installConfig('filter');
$this
->installSchema('node', 'node_access');
$this
->installSchema('user', 'users_data');
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installEntitySchema('path_alias');
$this
->installEntitySchema('user');
$this->commonActionService = $this->container
->get('acquia_contenthub_common_actions');
}