diff options
author | ArthurHoaro <arthur@hoa.ro> | 2021-02-04 10:57:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 10:57:44 +0100 |
commit | 8997ae6c8e24286f7d47981eaf905e80d2481c10 (patch) | |
tree | 9906b122998ca4420af68b1bb110033b99f7d8bf /tests/bookmark/BookmarkFileServiceTest.php | |
parent | 11edc143b42a7be09c0c9dc02730c83e8cbb73c2 (diff) | |
parent | 9b8c0a4560fa1d87cab1529099b1b4677e92e265 (diff) | |
download | Shaarli-8997ae6c8e24286f7d47981eaf905e80d2481c10.tar.gz Shaarli-8997ae6c8e24286f7d47981eaf905e80d2481c10.tar.zst Shaarli-8997ae6c8e24286f7d47981eaf905e80d2481c10.zip |
Merge pull request #1697 from ArthurHoaro/feature/pagination
Handle pagination through BookmarkService
Diffstat (limited to 'tests/bookmark/BookmarkFileServiceTest.php')
-rw-r--r-- | tests/bookmark/BookmarkFileServiceTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/bookmark/BookmarkFileServiceTest.php b/tests/bookmark/BookmarkFileServiceTest.php index f619aff3..d1af3fb0 100644 --- a/tests/bookmark/BookmarkFileServiceTest.php +++ b/tests/bookmark/BookmarkFileServiceTest.php | |||
@@ -807,7 +807,7 @@ class BookmarkFileServiceTest extends TestCase | |||
807 | $request = ['searchtags' => $tags]; | 807 | $request = ['searchtags' => $tags]; |
808 | $this->assertEquals( | 808 | $this->assertEquals( |
809 | 2, | 809 | 2, |
810 | count($this->privateLinkDB->search($request, null, true)) | 810 | count($this->privateLinkDB->search($request, null, true)->getBookmarks()) |
811 | ); | 811 | ); |
812 | } | 812 | } |
813 | 813 | ||
@@ -820,7 +820,7 @@ class BookmarkFileServiceTest extends TestCase | |||
820 | $request = ['searchtags' => $tags]; | 820 | $request = ['searchtags' => $tags]; |
821 | $this->assertEquals( | 821 | $this->assertEquals( |
822 | 2, | 822 | 2, |
823 | count($this->privateLinkDB->search($request, null, true)) | 823 | count($this->privateLinkDB->search($request, null, true)->getBookmarks()) |
824 | ); | 824 | ); |
825 | } | 825 | } |
826 | 826 | ||
@@ -834,12 +834,12 @@ class BookmarkFileServiceTest extends TestCase | |||
834 | $request = ['searchtags' => $tags]; | 834 | $request = ['searchtags' => $tags]; |
835 | $this->assertEquals( | 835 | $this->assertEquals( |
836 | 1, | 836 | 1, |
837 | count($this->privateLinkDB->search($request, 'all', true)) | 837 | count($this->privateLinkDB->search($request, 'all', true)->getBookmarks()) |
838 | ); | 838 | ); |
839 | 839 | ||
840 | $this->assertEquals( | 840 | $this->assertEquals( |
841 | 0, | 841 | 0, |
842 | count($this->publicLinkDB->search($request, 'public', true)) | 842 | count($this->publicLinkDB->search($request, 'public', true)->getBookmarks()) |
843 | ); | 843 | ); |
844 | } | 844 | } |
845 | 845 | ||