Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(FM/EFile) fix test failure if EFile is present
Browse files Browse the repository at this point in the history
Change-Id: Id21cddb5e57d8b3bcc4a4c43a2fec34b28244104
Reviewed-on: http://gerrit.tine20.com/customers/18559
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
Reviewed-by: Paul Mehrer <p.mehrer@metaways.de>
  • Loading branch information
paulmhh committed Nov 25, 2020
1 parent c6086a5 commit c6fa269
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tine20/Filemanager/Frontend/JsonTests.php
Expand Up @@ -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(
Expand Down

0 comments on commit c6fa269

Please sign in to comment.