public function ClassyParagraphsTestTestFeatureCase::testClassyParagraphsNodeType in Classy paragraphs 7
Test content type stored in features.
File
- tests/
classy_paragraphs.test, line 78 - Contains tests for Classy Paragraphs.
Class
- ClassyParagraphsTestTestFeatureCase
- Class ClassyParagraphsTestTestFeatureCase
Code
public function testClassyParagraphsNodeType() {
$node_types = node_type_get_types();
$this
->assertTrue(isset($node_types['cp_test_landing_page']), 'Node type landing page is available.');
// Go to test content type.
$this
->drupalGet('node/add/cp-test-landing-page');
$this
->assertRaw('Paragraphs', 'Found paragraphs field');
}