aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-05-24 09:01:56 +0200
committerjld3103 <jld3103yt@gmail.com>2023-06-13 11:44:47 +0200
commit7f4651637a96a93b8b0479834b5058480380d0fa (patch)
tree52649df5af0a118eb2861bcc8d4ebdd7f2f469fd /tests
parent39b716cc78385be1552306890d588540435267dd (diff)
downloadnextcloud-server-7f4651637a96a93b8b0479834b5058480380d0fa.tar.gz
nextcloud-server-7f4651637a96a93b8b0479834b5058480380d0fa.zip
Allow stdClass in XML responses
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/OCS/BaseResponseTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/AppFramework/OCS/BaseResponseTest.php b/tests/lib/AppFramework/OCS/BaseResponseTest.php
index 9038aee6baf..a1e0c620574 100644
--- a/tests/lib/AppFramework/OCS/BaseResponseTest.php
+++ b/tests/lib/AppFramework/OCS/BaseResponseTest.php
@@ -45,13 +45,14 @@ class BaseResponseTest extends \Test\TestCase {
'someElement' => 'withAttribute',
],
'value without key',
+ 'object' => new \stdClass(),
];
$this->invokePrivate($response, 'toXml', [$data, $writer]);
$writer->endDocument();
$this->assertEquals(
- "<?xml version=\"1.0\"?>\n<hello>hello</hello><information test=\"some data\"><someElement>withAttribute</someElement></information><element>value without key</element>\n",
+ "<?xml version=\"1.0\"?>\n<hello>hello</hello><information test=\"some data\"><someElement>withAttribute</someElement></information><element>value without key</element><object/>\n",
$writer->outputMemory(true)
);
}