From c6fa269aa67e34ec7b07883f895d02905433d30a Mon Sep 17 00:00:00 2001 From: Paul Mehrer Date: Wed, 25 Nov 2020 11:24:11 +0100 Subject: [PATCH] fix(FM/EFile) fix test failure if EFile is present Change-Id: Id21cddb5e57d8b3bcc4a4c43a2fec34b28244104 Reviewed-on: http://gerrit.tine20.com/customers/18559 Tested-by: Jenkins CI (http://ci.tine20.com/) Reviewed-by: Paul Mehrer --- tests/tine20/Filemanager/Frontend/JsonTests.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/tine20/Filemanager/Frontend/JsonTests.php b/tests/tine20/Filemanager/Frontend/JsonTests.php index f2eefb9023c..5d0b9425fc1 100644 --- a/tests/tine20/Filemanager/Frontend/JsonTests.php +++ b/tests/tine20/Filemanager/Frontend/JsonTests.php @@ -164,6 +164,11 @@ public function testSearchRoot() */ protected function _assertRootNodes($searchResult) { + foreach ($searchResult['results'] as &$result) { + if (isset($result['efile_file_metadata'])) { + unset($result['efile_file_metadata']); + } + } $translate = Tinebase_Translation::getTranslation('Filemanager'); $this->assertEquals(3, $searchResult['totalcount'], 'did not get root nodes: ' . print_r($searchResult, true)); $this->assertEquals(array(