diff options
Diffstat (limited to 'tests/front/controller/admin/ThumbnailsControllerTest.php')
-rw-r--r-- | tests/front/controller/admin/ThumbnailsControllerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/front/controller/admin/ThumbnailsControllerTest.php b/tests/front/controller/admin/ThumbnailsControllerTest.php index e5749654..0c9b63c3 100644 --- a/tests/front/controller/admin/ThumbnailsControllerTest.php +++ b/tests/front/controller/admin/ThumbnailsControllerTest.php | |||
@@ -6,6 +6,7 @@ namespace Shaarli\Front\Controller\Admin; | |||
6 | 6 | ||
7 | use Shaarli\Bookmark\Bookmark; | 7 | use Shaarli\Bookmark\Bookmark; |
8 | use Shaarli\Bookmark\Exception\BookmarkNotFoundException; | 8 | use Shaarli\Bookmark\Exception\BookmarkNotFoundException; |
9 | use Shaarli\Bookmark\SearchResult; | ||
9 | use Shaarli\TestCase; | 10 | use Shaarli\TestCase; |
10 | use Shaarli\Thumbnailer; | 11 | use Shaarli\Thumbnailer; |
11 | use Slim\Http\Request; | 12 | use Slim\Http\Request; |
@@ -40,12 +41,12 @@ class ThumbnailsControllerTest extends TestCase | |||
40 | $this->container->bookmarkService | 41 | $this->container->bookmarkService |
41 | ->expects(static::once()) | 42 | ->expects(static::once()) |
42 | ->method('search') | 43 | ->method('search') |
43 | ->willReturn([ | 44 | ->willReturn(SearchResult::getSearchResult([ |
44 | (new Bookmark())->setId(1)->setUrl('http://url1.tld')->setTitle('Title 1'), | 45 | (new Bookmark())->setId(1)->setUrl('http://url1.tld')->setTitle('Title 1'), |
45 | (new Bookmark())->setId(2)->setUrl('?abcdef')->setTitle('Note 1'), | 46 | (new Bookmark())->setId(2)->setUrl('?abcdef')->setTitle('Note 1'), |
46 | (new Bookmark())->setId(3)->setUrl('http://url2.tld')->setTitle('Title 2'), | 47 | (new Bookmark())->setId(3)->setUrl('http://url2.tld')->setTitle('Title 2'), |
47 | (new Bookmark())->setId(4)->setUrl('ftp://domain.tld', ['ftp'])->setTitle('FTP'), | 48 | (new Bookmark())->setId(4)->setUrl('ftp://domain.tld', ['ftp'])->setTitle('FTP'), |
48 | ]) | 49 | ])) |
49 | ; | 50 | ; |
50 | 51 | ||
51 | $result = $this->controller->index($request, $response); | 52 | $result = $this->controller->index($request, $response); |