- $this->container->bookmarkService->expects(static::once())->method('search')->willReturn([
- (new Bookmark())->setId(1)->setCreated($dates[0])->setUrl('http://domain.tld/1'),
- (new Bookmark())->setId(2)->setCreated($dates[1])->setUrl('http://domain.tld/2'),
- (new Bookmark())->setId(3)->setCreated($dates[1])->setUrl('http://domain.tld/3'),
- (new Bookmark())->setId(4)->setCreated($dates[2])->setUrl('http://domain.tld/4'),
- (new Bookmark())->setId(5)->setCreated($dates[3])->setUrl('http://domain.tld/5'),
- ]);
+ $this->container->bookmarkService->expects(static::once())->method('search')->willReturn(
+ SearchResult::getSearchResult([
+ (new Bookmark())->setId(1)->setCreated($dates[0])->setUrl('http://domain.tld/1'),
+ (new Bookmark())->setId(2)->setCreated($dates[1])->setUrl('http://domain.tld/2'),
+ (new Bookmark())->setId(3)->setCreated($dates[1])->setUrl('http://domain.tld/3'),
+ (new Bookmark())->setId(4)->setCreated($dates[2])->setUrl('http://domain.tld/4'),
+ (new Bookmark())->setId(5)->setCreated($dates[3])->setUrl('http://domain.tld/5'),
+ ])
+ );