protected function SlickManagerTest::setUp in Slick Carousel 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/SlickManagerTest.php \Drupal\Tests\slick\Kernel\SlickManagerTest::setUp()
File
- tests/
src/ Kernel/ SlickManagerTest.php, line 42
Class
- SlickManagerTest
- Tests the Slick manager methods.
Namespace
Drupal\Tests\slick\KernelCode
protected function setUp() {
parent::setUp();
$bundle = $this->bundle;
$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 = new SlickForm($this->slickAdmin, $this->slickManager);
$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();
}