You are here

public function ClassyParagraphsTest::testClassyParagraphsTestModule in Classy paragraphs 8

Assert that the CP test modules has been enabled.

File

src/Tests/ClassyParagraphsTest.php, line 79

Class

ClassyParagraphsTest
Tests the classy_paragraphs_test module.

Namespace

Drupal\classy_paragraphs\Tests

Code

public function testClassyParagraphsTestModule() {

  // Check the test text paragraph type.
  $this
    ->drupalGet('admin/structure/paragraphs_type');
  $this
    ->assertText('Text (CP Test)');

  // Check the test content type type.
  $this
    ->drupalGet('admin/structure/types');
  $this
    ->assertText('CP Test');
}