public function ParagraphsTypesTest::testCreateParagraphType in Paragraphs Collection 8
Ensures that a new paragraph type is created.
File
- tests/
src/ Functional/ ParagraphsTypesTest.php, line 87
Class
- ParagraphsTypesTest
- Tests the Paragraphs Collection paragraph types.
Namespace
Drupal\Tests\paragraphs_collection\FunctionalCode
public function testCreateParagraphType() {
$this
->loginAsAdmin();
$this
->drupalGet('/admin/structure/paragraphs_type');
$this
->clickLink(t('Add paragraph type'));
$edit = [
'label' => 'test_paragraph',
'id' => 'test_paragraph',
];
$this
->drupalPostForm(NULL, $edit, t('Save and manage fields'));
$this
->assertText('Saved the test_paragraph Paragraphs type');
}