protected function IsExcludedImageStyleTest::setUp in Acquia Lift Connector 8.4
Overrides KernelTestBase::setUp
File
- modules/
acquia_lift_publisher/ tests/ src/ Kernel/ EventSubscriber/ EnqueueEligibility/ IsExcludedImageStyleTest.php, line 63
Class
- IsExcludedImageStyleTest
- Class IsExcludedImageStyleTest.
Namespace
Drupal\Tests\acquia_lift_publisher\Kernel\EventSubscriber\EnqueueEligibilityCode
protected function setUp() {
parent::setUp();
$this
->installSchema('acquia_contenthub_publisher', [
'acquia_contenthub_publisher_export_tracking',
]);
$this
->installConfig([
'filter',
'node',
'system',
'image',
'acquia_lift_publisher',
]);
$this
->installSchema('system', [
'key_value_expire',
'sequences',
]);
$this
->installSchema('node', [
'node_access',
]);
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installEntitySchema('taxonomy_term');
$this->eventDispatcher = \Drupal::service('event_dispatcher');
try {
$this->imageStyleStorage = \Drupal::entityTypeManager()
->getStorage('image_style');
$this
->prepareContent();
} catch (\Exception $exception) {
$this
->markTestIncomplete($exception
->getMessage());
}
}