public function ClassyParagraphsTestTestFeatureCase::testClassyParagraphsCheckParagraph in Classy paragraphs 7
Test paragraph type and custom fields.
File
- tests/
classy_paragraphs.test, line 89 - Contains tests for Classy Paragraphs.
Class
- ClassyParagraphsTestTestFeatureCase
- Class ClassyParagraphsTestTestFeatureCase
Code
public function testClassyParagraphsCheckParagraph() {
// Get to paragraphs admin page.
$this
->drupalGet('admin/structure/paragraphs');
$this
->assertText('Content (test) (cp_test_content)', 'Found test paragraph');
// Ensure fields are present.
$this
->drupalGet('admin/structure/paragraphs/cp-test-content/fields');
$this
->assertText('field_cp_test_class', 'Found class field.');
$this
->assertText('field_cp_test_body', 'Found body field.');
}