File tree 1 file changed +2
-13
lines changed
eZ/Publish/API/Repository/Tests
1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -1987,19 +1987,8 @@ public function testBookmarksAreSwappedAfterSwapLocation()
1987
1987
$ afterSwap = $ bookmarkService ->loadBookmarks ();
1988
1988
/* END: Use Case */
1989
1989
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 );
2003
1992
}
2004
1993
2005
1994
/**
You can’t perform that action at this time.
0 commit comments