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/netscape/BookmarkImportTest.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/netscape/BookmarkImportTest.php')
-rw-r--r-- | tests/netscape/BookmarkImportTest.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/netscape/BookmarkImportTest.php b/tests/netscape/BookmarkImportTest.php index 6856ebca..ecd33ea1 100644 --- a/tests/netscape/BookmarkImportTest.php +++ b/tests/netscape/BookmarkImportTest.php | |||
@@ -10,6 +10,7 @@ use Shaarli\Bookmark\BookmarkFileService; | |||
10 | use Shaarli\Bookmark\BookmarkFilter; | 10 | use Shaarli\Bookmark\BookmarkFilter; |
11 | use Shaarli\Config\ConfigManager; | 11 | use Shaarli\Config\ConfigManager; |
12 | use Shaarli\History; | 12 | use Shaarli\History; |
13 | use Shaarli\Plugin\PluginManager; | ||
13 | use Shaarli\TestCase; | 14 | use Shaarli\TestCase; |
14 | use Slim\Http\UploadedFile; | 15 | use Slim\Http\UploadedFile; |
15 | 16 | ||
@@ -71,6 +72,9 @@ class BookmarkImportTest extends TestCase | |||
71 | */ | 72 | */ |
72 | protected $netscapeBookmarkUtils; | 73 | protected $netscapeBookmarkUtils; |
73 | 74 | ||
75 | /** @var PluginManager */ | ||
76 | protected $pluginManager; | ||
77 | |||
74 | /** | 78 | /** |
75 | * @var string Save the current timezone. | 79 | * @var string Save the current timezone. |
76 | */ | 80 | */ |
@@ -99,7 +103,14 @@ class BookmarkImportTest extends TestCase | |||
99 | $this->conf->set('resource.page_cache', $this->pagecache); | 103 | $this->conf->set('resource.page_cache', $this->pagecache); |
100 | $this->conf->set('resource.datastore', self::$testDatastore); | 104 | $this->conf->set('resource.datastore', self::$testDatastore); |
101 | $this->history = new History(self::$historyFilePath); | 105 | $this->history = new History(self::$historyFilePath); |
102 | $this->bookmarkService = new BookmarkFileService($this->conf, $this->history, $mutex, true); | 106 | $this->pluginManager = new PluginManager($this->conf); |
107 | $this->bookmarkService = new BookmarkFileService( | ||
108 | $this->conf, | ||
109 | $this->pluginManager, | ||
110 | $this->history, | ||
111 | $mutex, | ||
112 | true | ||
113 | ); | ||
103 | $this->netscapeBookmarkUtils = new NetscapeBookmarkUtils($this->bookmarkService, $this->conf, $this->history); | 114 | $this->netscapeBookmarkUtils = new NetscapeBookmarkUtils($this->bookmarkService, $this->conf, $this->history); |
104 | } | 115 | } |
105 | 116 | ||