protected function SlickManagerTest::setUp in Slick Carousel 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/SlickManagerTest.php \Drupal\Tests\slick\Kernel\SlickManagerTest::setUp()
File
- tests/
src/ Kernel/ SlickManagerTest.php, line 43
Class
- SlickManagerTest
- Tests the Slick manager methods.
Namespace
Drupal\Tests\slick\KernelCode
protected function setUp() {
parent::setUp();
$this
->installConfig([
'field',
'image',
'media',
'responsive_image',
'node',
'views',
'blazy',
'slick',
'slick_ui',
]);
$bundle = $this->bundle;
$this->messenger = $this->container
->get('messenger');
$this->slickAdmin = $this->container
->get('slick.admin');
$this->blazyAdminFormatter = $this->slickAdmin;
$this->slickFormatter = $this->container
->get('slick.formatter');
$this->slickManager = $this->container
->get('slick.manager');
$this->slickForm = SlickForm::create($this->container);
$this->testPluginId = 'slick_image';
$this->testFieldName = 'field_slick_image';
$this->maxItems = 7;
$this->maxParagraphs = 2;
$settings['fields']['field_text_multiple'] = 'text';
$this
->setUpContentTypeTest($bundle, $settings);
$this
->setUpContentWithItems($bundle);
$this
->setUpRealImage();
$this->display = $this
->setUpFormatterDisplay($bundle);
$this->formatterInstance = $this
->getFormatterInstance();
}