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/feed | |
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/feed')
-rw-r--r-- | tests/feed/FeedBuilderTest.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/feed/FeedBuilderTest.php b/tests/feed/FeedBuilderTest.php index 6b9204eb..fe092f78 100644 --- a/tests/feed/FeedBuilderTest.php +++ b/tests/feed/FeedBuilderTest.php | |||
@@ -11,6 +11,7 @@ use Shaarli\Bookmark\LinkDB; | |||
11 | use Shaarli\Config\ConfigManager; | 11 | use Shaarli\Config\ConfigManager; |
12 | use Shaarli\Formatter\FormatterFactory; | 12 | use Shaarli\Formatter\FormatterFactory; |
13 | use Shaarli\History; | 13 | use Shaarli\History; |
14 | use Shaarli\Plugin\PluginManager; | ||
14 | use Shaarli\TestCase; | 15 | use Shaarli\TestCase; |
15 | 16 | ||
16 | /** | 17 | /** |
@@ -55,8 +56,15 @@ class FeedBuilderTest extends TestCase | |||
55 | $refLinkDB->write(self::$testDatastore); | 56 | $refLinkDB->write(self::$testDatastore); |
56 | $history = new History('sandbox/history.php'); | 57 | $history = new History('sandbox/history.php'); |
57 | $factory = new FormatterFactory($conf, true); | 58 | $factory = new FormatterFactory($conf, true); |
59 | $pluginManager = new PluginManager($conf); | ||
58 | self::$formatter = $factory->getFormatter(); | 60 | self::$formatter = $factory->getFormatter(); |
59 | self::$bookmarkService = new BookmarkFileService($conf, $history, $mutex, true); | 61 | self::$bookmarkService = new BookmarkFileService( |
62 | $conf, | ||
63 | $pluginManager, | ||
64 | $history, | ||
65 | $mutex, | ||
66 | true | ||
67 | ); | ||
60 | 68 | ||
61 | self::$serverInfo = array( | 69 | self::$serverInfo = array( |
62 | 'HTTPS' => 'Off', | 70 | 'HTTPS' => 'Off', |