mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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($obj->ID, (int) $xml->ID);
|
||||
$this->assertEquals(
|
||||
'<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><![CDATA[<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.]]>'
|
||||
. '</Content>',
|
||||
$xml->Content->asXML()
|
||||
);
|
||||
$this->assertEquals(
|
||||
'<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.'
|
||||
. ' <![CDATA[this is some nested CDATA]]>',
|
||||
'<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.',
|
||||
(string)$xml->Content
|
||||
);
|
||||
}
|
||||
|
@ -2,4 +2,4 @@ XMLDataFormatterTest_DataObject:
|
||||
test-do:
|
||||
Name: Test DataObject
|
||||
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…
x
Reference in New Issue
Block a user