public function ClassyParagraphsTestClassCase::testClassyParagraphsCheckMarkup in Classy paragraphs 7
Check markup class.
File
- tests/
classy_paragraphs.test, line 123 - Contains tests for Classy Paragraphs.
Class
- ClassyParagraphsTestClassCase
- Class ClassyParagraphsTestCase
Code
public function testClassyParagraphsCheckMarkup() {
$css_class = 'test-soft-value';
list($node, $entity) = $this
->createNodeWithParagraph($css_class);
$this
->drupalGet('node/' . $node->nid);
$class = $this
->xpath('//*[contains(@class, "' . $css_class . '")]');
$this
->assertTrue(count($class) == 1, $css_class . ' class found.');
}