public function ParagraphsAddModesTest::testEmptyAllowedTypes in Paragraphs 8
Same name in this branch
- 8 tests/src/Functional/WidgetLegacy/ParagraphsAddModesTest.php \Drupal\Tests\paragraphs\Functional\WidgetLegacy\ParagraphsAddModesTest::testEmptyAllowedTypes()
- 8 tests/src/Functional/WidgetStable/ParagraphsAddModesTest.php \Drupal\Tests\paragraphs\Functional\WidgetStable\ParagraphsAddModesTest::testEmptyAllowedTypes()
Tests the field creation when no Paragraphs types are available.
File
- tests/
src/ Functional/ WidgetStable/ ParagraphsAddModesTest.php, line 34
Class
- ParagraphsAddModesTest
- Tests paragraphs add modes.
Namespace
Drupal\Tests\paragraphs\Functional\WidgetStableCode
public function testEmptyAllowedTypes() {
$this
->loginAsAdmin();
$this
->addParagraphedContentType('paragraphed_test');
// Edit the field and save when there are no Paragraphs types available.
$this
->drupalGet('admin/structure/types/manage/paragraphed_test/fields');
$this
->clickLink('Edit');
$this
->submitForm([], 'Save settings');
$this
->assertSession()
->pageTextContains('Saved field_paragraphs configuration.');
}