protected function ParagraphsAccordionPluginTest::setUp

Overrides ParagraphsTestBase::setUp

File

paragraphs_collection/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() : void {
  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',
  ], []);
}