Separate <p> tests from <br> tests

This commit is contained in:
Kijin Sung 2017-06-29 18:44:52 +09:00
parent 804533222c
commit 3c772bf1cf
2 changed files with 9 additions and 4 deletions

View file

@ -178,6 +178,8 @@ class FunctionsTest extends \Codeception\TestCase\Test
$this->assertTrue(is_html_content("<div>Hello<br>\r\n\n\n\n\nWorld</div>"));
$this->assertFalse(is_html_content("You have to use a <p> tag."));
$this->assertFalse(is_html_content("This is multiline content.\n<p> tag is here.\nOther lines are here, too.<br>\nMost lines don't have any tags."));
$this->assertFalse(is_html_content("<p> tag is unbalanced here.\nAnother line!<br />\nAnd a dangling line..."));
$this->assertFalse(is_html_content("Looks like a broken editor<br />\nthat produced\nthis kind of\nstring!</div>"));
}
public function testIsEmptyHTMLContent()