aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/bookmark/BookmarkFilterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bookmark/BookmarkFilterTest.php')
-rw-r--r--tests/bookmark/BookmarkFilterTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/bookmark/BookmarkFilterTest.php b/tests/bookmark/BookmarkFilterTest.php
index 48c7f824..644abbc8 100644
--- a/tests/bookmark/BookmarkFilterTest.php
+++ b/tests/bookmark/BookmarkFilterTest.php
@@ -3,6 +3,7 @@
3namespace Shaarli\Bookmark; 3namespace Shaarli\Bookmark;
4 4
5use Exception; 5use Exception;
6use malkusch\lock\mutex\NoMutex;
6use ReferenceLinkDB; 7use ReferenceLinkDB;
7use Shaarli\Config\ConfigManager; 8use Shaarli\Config\ConfigManager;
8use Shaarli\History; 9use Shaarli\History;
@@ -37,12 +38,13 @@ class BookmarkFilterTest extends TestCase
37 */ 38 */
38 public static function setUpBeforeClass(): void 39 public static function setUpBeforeClass(): void
39 { 40 {
41 $mutex = new NoMutex();
40 $conf = new ConfigManager('tests/utils/config/configJson'); 42 $conf = new ConfigManager('tests/utils/config/configJson');
41 $conf->set('resource.datastore', self::$testDatastore); 43 $conf->set('resource.datastore', self::$testDatastore);
42 self::$refDB = new \ReferenceLinkDB(); 44 self::$refDB = new \ReferenceLinkDB();
43 self::$refDB->write(self::$testDatastore); 45 self::$refDB->write(self::$testDatastore);
44 $history = new History('sandbox/history.php'); 46 $history = new History('sandbox/history.php');
45 self::$bookmarkService = new \FakeBookmarkService($conf, $history, true); 47 self::$bookmarkService = new \FakeBookmarkService($conf, $history, $mutex, true);
46 self::$linkFilter = new BookmarkFilter(self::$bookmarkService->getBookmarks()); 48 self::$linkFilter = new BookmarkFilter(self::$bookmarkService->getBookmarks());
47 } 49 }
48 50