protected function CustomFilterTest::ruleContent in Custom filter 8
Test if node content is replaced by rule.
1 call to CustomFilterTest::ruleContent()
- CustomFilterTest::testModule in src/
Tests/ CustomFilterTest.php - Run all the tests.
File
- src/
Tests/ CustomFilterTest.php, line 177
Class
- CustomFilterTest
- Test the Custom Filter administration and use.
Namespace
Drupal\customfilter\TestsCode
protected function ruleContent() {
$this
->drupalGet('node/1');
$this
->assertRaw('Drupal <b>Goodbye <font color="red">Drupal</font> 7</b>', 'Node content is replaced');
}