mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Multi-use redemption page created (from r104442)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112346 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a191019e7a
commit
8f2d9200ae
@ -117,11 +117,9 @@ class HtmlEditorFieldTest extends FunctionalTest {
|
|||||||
public function testMultiLineSaving() {
|
public function testMultiLineSaving() {
|
||||||
$sitetree = $this->objFromFixture('SiteTree', 'home');
|
$sitetree = $this->objFromFixture('SiteTree', 'home');
|
||||||
$editor = new HtmlEditorField('Content');
|
$editor = new HtmlEditorField('Content');
|
||||||
|
$editor->setValue("<p>First Paragraph</p><p>Second Paragraph</p>");
|
||||||
$editor->setValue("<p>First Paragraph</p>\n\n<p>Second Paragraph</p>");
|
|
||||||
$editor->saveInto($sitetree);
|
$editor->saveInto($sitetree);
|
||||||
|
$this->assertEquals("<p>First Paragraph</p><p>Second Paragraph</p>", $sitetree->Content);
|
||||||
$this->assertEquals("<p>First Paragraph</p>\n\n<p>Second Paragraph</p>", $sitetree->Content);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSavingLinksWithoutHref() {
|
public function testSavingLinksWithoutHref() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user