mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #5768 from silverstripe-terraformers/fixes/xml-unittest-fix
Fix unit test for xml content check
This commit is contained in:
commit
efd35045ec
@ -55,7 +55,7 @@ class XMLDataFormatterTest extends SapphireTest {
|
||||
|
||||
$page->Content = '[test_shortcode,id=-1]';
|
||||
$xml = new SimpleXMLElement('<?xml version="1.0"?>' . $formatter->convertDataObjectWithoutHeader($page));
|
||||
$this->assertEmpty('', (string)$xml->Content);
|
||||
$this->assertEmpty((string)$xml->Content);
|
||||
|
||||
$page->Content = '[bad_code,id=1]';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user