diff options
author | ArthurHoaro <arthur@hoa.ro> | 2021-02-04 11:11:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 11:11:33 +0100 |
commit | 9db1ccdf2ce8381e1f3acb581d3c6a6def095d8c (patch) | |
tree | 97a618b77d327a5f963c91522988e24db5a9e158 /tests/updater/UpdaterTest.php | |
parent | 8997ae6c8e24286f7d47981eaf905e80d2481c10 (diff) | |
parent | bcba6bd353161fab456b423e93571ab027d5423c (diff) | |
download | Shaarli-master.tar.gz Shaarli-master.tar.zst Shaarli-master.zip |
New plugin hook: ability to add custom filters to Shaarli search engine
Diffstat (limited to 'tests/updater/UpdaterTest.php')
-rw-r--r-- | tests/updater/UpdaterTest.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/updater/UpdaterTest.php b/tests/updater/UpdaterTest.php index cadd8265..a8539d63 100644 --- a/tests/updater/UpdaterTest.php +++ b/tests/updater/UpdaterTest.php | |||
@@ -7,6 +7,7 @@ use Shaarli\Bookmark\BookmarkFileService; | |||
7 | use Shaarli\Bookmark\BookmarkServiceInterface; | 7 | use Shaarli\Bookmark\BookmarkServiceInterface; |
8 | use Shaarli\Config\ConfigManager; | 8 | use Shaarli\Config\ConfigManager; |
9 | use Shaarli\History; | 9 | use Shaarli\History; |
10 | use Shaarli\Plugin\PluginManager; | ||
10 | use Shaarli\TestCase; | 11 | use Shaarli\TestCase; |
11 | 12 | ||
12 | 13 | ||
@@ -51,7 +52,13 @@ class UpdaterTest extends TestCase | |||
51 | 52 | ||
52 | copy('tests/utils/config/configJson.json.php', self::$configFile .'.json.php'); | 53 | copy('tests/utils/config/configJson.json.php', self::$configFile .'.json.php'); |
53 | $this->conf = new ConfigManager(self::$configFile); | 54 | $this->conf = new ConfigManager(self::$configFile); |
54 | $this->bookmarkService = new BookmarkFileService($this->conf, $this->createMock(History::class), $mutex, true); | 55 | $this->bookmarkService = new BookmarkFileService( |
56 | $this->conf, | ||
57 | $this->createMock(PluginManager::class), | ||
58 | $this->createMock(History::class), | ||
59 | $mutex, | ||
60 | true | ||
61 | ); | ||
55 | $this->updater = new Updater([], $this->bookmarkService, $this->conf, true); | 62 | $this->updater = new Updater([], $this->bookmarkService, $this->conf, true); |
56 | } | 63 | } |
57 | 64 | ||