mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX CDATA sections in HTML5 are invalid so remove from test
This commit is contained in:
parent
1f4c8174e6
commit
baf894d84a
@ -32,13 +32,12 @@ class XMLDataFormatterTest extends SapphireTest {
|
|||||||
$this->assertEquals('Test Company', (string) $xml->Company);
|
$this->assertEquals('Test Company', (string) $xml->Company);
|
||||||
$this->assertEquals($obj->ID, (int) $xml->ID);
|
$this->assertEquals($obj->ID, (int) $xml->ID);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'<Content><![CDATA[<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.'
|
'<Content><![CDATA[<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.]]>'
|
||||||
. ' <![CDATA[this is some nested CDATA]]]]><![CDATA[>]]></Content>',
|
. '</Content>',
|
||||||
$xml->Content->asXML()
|
$xml->Content->asXML()
|
||||||
);
|
);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.'
|
'<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.',
|
||||||
. ' <![CDATA[this is some nested CDATA]]>',
|
|
||||||
(string)$xml->Content
|
(string)$xml->Content
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,4 @@ XMLDataFormatterTest_DataObject:
|
|||||||
test-do:
|
test-do:
|
||||||
Name: Test DataObject
|
Name: Test DataObject
|
||||||
Company: Test Company
|
Company: Test Company
|
||||||
Content: <a href="http://mysite.com">mysite.com</a> is a link in this HTML content. <![CDATA[this is some nested CDATA]]>
|
Content: <a href="http://mysite.com">mysite.com</a> is a link in this HTML content.
|
Loading…
Reference in New Issue
Block a user