public function ParagraphsAccordionPluginTest::testConfigurationForm in Paragraphs Collection 8
Test accordion plugin configuration form.
File
- modules/
paragraphs_collection_demo/ tests/ src/ Functional/ ParagraphsAccordionPluginTest.php, line 86
Class
- ParagraphsAccordionPluginTest
- Tests Accordion plugin.
Namespace
Drupal\Tests\paragraphs_collection_demo\FunctionalCode
public function testConfigurationForm() {
$this
->drupalGet('admin/structure/paragraphs_type/accordion_content');
$this
->assertText('There are no fields available with the cardinality greater than one. Please add at least one in the Manage fields page.');
$this
->drupalGet('admin/structure/paragraphs_type/accordion');
$this
->assertText('Accordion effect for paragraphs.');
$this
->assertOptionSelected('edit-behavior-plugins-accordion-settings-paragraph-accordion-field', 'paragraphs_accordion_paragraphs');
$this
->assertText('Choose a field to be used as the accordion container.');
}