mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
Separate <p> tests from <br> tests
This commit is contained in:
parent
804533222c
commit
3c772bf1cf
2 changed files with 9 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue