You are here

protected function ParagraphsAccordionPluginTest::setUp in Paragraphs Collection 8

Overrides ParagraphsTestBase::setUp

File

modules/paragraphs_collection_demo/tests/src/Functional/ParagraphsAccordionPluginTest.php, line 32

Class

ParagraphsAccordionPluginTest
Tests Accordion plugin.

Namespace

Drupal\Tests\paragraphs_collection_demo\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->loginAsAdmin([
    'administer modules',
    'edit behavior plugin settings',
  ]);
  $this
    ->addParagraphedContentType('paragraphed_accordion_test');
  $this
    ->addParagraphsType('accordion_content');
  static::fieldUIAddNewField('admin/structure/paragraphs_type/accordion_content', 'accordion_content', 'accordion_title', 'text_long', [
    'cardinality' => 'number',
    'cardinality_number' => '1',
  ], []);
}