Skip to content

Commit f620af5

Browse files
committed
fixup! IBX-6773: Bookmarks for non-accessible contents cause exception
1 parent 9c9b56e commit f620af5

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

eZ/Publish/API/Repository/Tests/LocationServiceTest.php

+2-13
Original file line numberDiff line numberDiff line change
@@ -1987,19 +1987,8 @@ public function testBookmarksAreSwappedAfterSwapLocation()
19871987
$afterSwap = $bookmarkService->loadBookmarks();
19881988
/* END: Use Case */
19891989

1990-
$expectedIdsAfter = array_map(static function (Location $item) use ($demoDesignLocationId, $contactUsLocationId) {
1991-
if ($item->id === $demoDesignLocationId) {
1992-
return $contactUsLocationId;
1993-
}
1994-
1995-
return $item->id;
1996-
}, $beforeSwap->items);
1997-
1998-
$actualIdsAfter = array_map(static function (Location $item) use ($demoDesignLocationId, $contactUsLocationId) {
1999-
return $item->id;
2000-
}, $afterSwap->items);
2001-
2002-
$this->assertEquals($expectedIdsAfter, $actualIdsAfter);
1990+
$this->assertEquals($contactUsLocationId, $afterSwap->items[0]->id);
1991+
$this->assertEquals($beforeSwap->items[1]->id, $afterSwap->items[1]->id);
20031992
}
20041993

20051994
/**

0 commit comments

Comments
 (0)