public function ParagraphsLibraryItemTest::setUp in Paragraphs 8
Overrides BrowserTestBase::setUp
File
- modules/
paragraphs_library/ tests/ src/ Functional/ ParagraphsLibraryItemTest.php, line 41
Class
- ParagraphsLibraryItemTest
- Tests the functionality of the Paragraphs Library.
Namespace
Drupal\Tests\paragraphs_library\FunctionalCode
public function setUp() : void {
parent::setUp();
$this
->addParagraphedContentType('paragraphed_test', 'field_paragraphs');
$this
->addParagraphsType('text');
$this
->addFieldtoParagraphType('text', 'field_text', 'text');
$this
->addParagraphsType('paragraphs_container');
$this
->addParagraphsField('paragraphs_container', 'paragraphs_container_paragraphs', 'paragraph');
$admin = $this
->drupalCreateUser([
'create paragraphed_test content',
'edit any paragraphed_test content',
'view paragraphed_test revisions',
'administer paragraphs library',
]);
$this
->drupalLogin($admin);
$this
->drupalPlaceBlock('system_breadcrumb_block');
$this
->drupalPlaceBlock('local_tasks_block');
$this
->drupalPlaceBlock('local_actions_block');
$this
->drupalPlaceBlock('page_title_block');
}