aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/feed
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-20 15:59:00 +0100
committerArthurHoaro <arthur@hoa.ro>2021-02-04 11:02:50 +0100
commitbcba6bd353161fab456b423e93571ab027d5423c (patch)
tree97a618b77d327a5f963c91522988e24db5a9e158 /tests/feed
parent8997ae6c8e24286f7d47981eaf905e80d2481c10 (diff)
downloadShaarli-bcba6bd353161fab456b423e93571ab027d5423c.tar.gz
Shaarli-bcba6bd353161fab456b423e93571ab027d5423c.tar.zst
Shaarli-bcba6bd353161fab456b423e93571ab027d5423c.zip
New plugin hook: ability to add custom filters to Shaarli search engine
A new plugin hook has been added: hook_test_filter_search_entry This hook allows to filter out bookmark with custom plugin code when a search is performed. Related to #143
Diffstat (limited to 'tests/feed')
-rw-r--r--tests/feed/FeedBuilderTest.php10
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;
11use Shaarli\Config\ConfigManager; 11use Shaarli\Config\ConfigManager;
12use Shaarli\Formatter\FormatterFactory; 12use Shaarli\Formatter\FormatterFactory;
13use Shaarli\History; 13use Shaarli\History;
14use Shaarli\Plugin\PluginManager;
14use Shaarli\TestCase; 15use 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',