public function ParagraphsPackFeatureTestCase::testParagraphsPackNodeListNodeType in Paragraphs pack 7
Test content type stored in features.
File
- tests/
paragraphs_pack.test, line 468 - Paragraphs pack primary module's tests.
Class
- ParagraphsPackFeatureTestCase
- Class ParagraphsPackFeatureTestCase
Code
public function testParagraphsPackNodeListNodeType() {
$node_types = node_type_get_types();
$this
->assertTrue(isset($node_types['pp_test_landing_page']), 'Node type landing page is available.');
// Go to test content type.
$this
->drupalGet('node/add/pp-test-landing-page');
$this
->assertText('Paragraphs', 'Found paragraphs field');
}