protected function IsExcludedImageStyleTest::prepareContent in Acquia Lift Connector 8.4
Prepare test content.
Throws
\Exception
1 call to IsExcludedImageStyleTest::prepareContent()
- IsExcludedImageStyleTest::setUp in modules/
acquia_lift_publisher/ tests/ src/ Kernel/ EventSubscriber/ EnqueueEligibility/ IsExcludedImageStyleTest.php
File
- modules/
acquia_lift_publisher/ tests/ src/ Kernel/ EventSubscriber/ EnqueueEligibility/ IsExcludedImageStyleTest.php, line 123
Class
- IsExcludedImageStyleTest
- Class IsExcludedImageStyleTest.
Namespace
Drupal\Tests\acquia_lift_publisher\Kernel\EventSubscriber\EnqueueEligibilityCode
protected function prepareContent() {
$this
->createContentType([
'type' => 'page',
]);
/** @var \Drupal\taxonomy\Entity\Vocabulary $vocabulary */
$vocabulary = $this
->createVocabulary();
self::$registry = [
'node' => $this
->createNode(),
'term' => $this
->createTerm($vocabulary),
'eligible_image_style' => $this->imageStyleStorage
->load('large'),
'not_eligible_image_style' => $this->imageStyleStorage
->load('acquia_lift_publisher_preview_image'),
];
}