diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-12 12:23:57 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-10-16 20:31:49 +0200 |
commit | f1a148ab92c061ac129b5b2976de02d45b6a71e7 (patch) | |
tree | 89b085ac6c4cd7608526f855f452d1a797dbb333 /tests/bookmark/BookmarkFileServiceTest.php | |
parent | 4e3875c0ce7f3b17e3d358dc5ecb1f8bed64546b (diff) | |
download | Shaarli-f1a148ab92c061ac129b5b2976de02d45b6a71e7.tar.gz Shaarli-f1a148ab92c061ac129b5b2976de02d45b6a71e7.tar.zst Shaarli-f1a148ab92c061ac129b5b2976de02d45b6a71e7.zip |
add search highlight unit tests
Diffstat (limited to 'tests/bookmark/BookmarkFileServiceTest.php')
-rw-r--r-- | tests/bookmark/BookmarkFileServiceTest.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bookmark/BookmarkFileServiceTest.php b/tests/bookmark/BookmarkFileServiceTest.php index 42485c99..daafd250 100644 --- a/tests/bookmark/BookmarkFileServiceTest.php +++ b/tests/bookmark/BookmarkFileServiceTest.php | |||
@@ -748,6 +748,10 @@ class BookmarkFileServiceTest extends TestCase | |||
748 | // They need to be grouped with the first case found - order by date DESC: `sTuff`. | 748 | // They need to be grouped with the first case found - order by date DESC: `sTuff`. |
749 | 'sTuff' => 2, | 749 | 'sTuff' => 2, |
750 | 'ut' => 1, | 750 | 'ut' => 1, |
751 | 'assurance' => 1, | ||
752 | 'coding-style' => 1, | ||
753 | 'quality' => 1, | ||
754 | 'standards' => 1, | ||
751 | ], | 755 | ], |
752 | $this->publicLinkDB->bookmarksCountPerTag() | 756 | $this->publicLinkDB->bookmarksCountPerTag() |
753 | ); | 757 | ); |
@@ -776,6 +780,10 @@ class BookmarkFileServiceTest extends TestCase | |||
776 | 'tag3' => 1, | 780 | 'tag3' => 1, |
777 | 'tag4' => 1, | 781 | 'tag4' => 1, |
778 | 'ut' => 1, | 782 | 'ut' => 1, |
783 | 'assurance' => 1, | ||
784 | 'coding-style' => 1, | ||
785 | 'quality' => 1, | ||
786 | 'standards' => 1, | ||
779 | ], | 787 | ], |
780 | $this->privateLinkDB->bookmarksCountPerTag() | 788 | $this->privateLinkDB->bookmarksCountPerTag() |
781 | ); | 789 | ); |
@@ -918,6 +926,10 @@ class BookmarkFileServiceTest extends TestCase | |||
918 | 'tag4' => 1, | 926 | 'tag4' => 1, |
919 | 'ut' => 1, | 927 | 'ut' => 1, |
920 | 'w3c' => 1, | 928 | 'w3c' => 1, |
929 | 'assurance' => 1, | ||
930 | 'coding-style' => 1, | ||
931 | 'quality' => 1, | ||
932 | 'standards' => 1, | ||
921 | ]; | 933 | ]; |
922 | $tags = $this->privateLinkDB->bookmarksCountPerTag(); | 934 | $tags = $this->privateLinkDB->bookmarksCountPerTag(); |
923 | 935 | ||
@@ -1016,6 +1028,10 @@ class BookmarkFileServiceTest extends TestCase | |||
1016 | 'stallman' => 1, | 1028 | 'stallman' => 1, |
1017 | 'ut' => 1, | 1029 | 'ut' => 1, |
1018 | 'w3c' => 1, | 1030 | 'w3c' => 1, |
1031 | 'assurance' => 1, | ||
1032 | 'coding-style' => 1, | ||
1033 | 'quality' => 1, | ||
1034 | 'standards' => 1, | ||
1019 | ]; | 1035 | ]; |
1020 | $bookmark = new Bookmark(); | 1036 | $bookmark = new Bookmark(); |
1021 | $bookmark->setTags(['newTagToCount', BookmarkMarkdownFormatter::NO_MD_TAG]); | 1037 | $bookmark->setTags(['newTagToCount', BookmarkMarkdownFormatter::NO_MD_TAG]); |