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/api/ApiMiddlewareTest.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/api/ApiMiddlewareTest.php')
-rw-r--r-- | tests/api/ApiMiddlewareTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/api/ApiMiddlewareTest.php b/tests/api/ApiMiddlewareTest.php index 86700840..2afac28b 100644 --- a/tests/api/ApiMiddlewareTest.php +++ b/tests/api/ApiMiddlewareTest.php | |||
@@ -3,6 +3,7 @@ namespace Shaarli\Api; | |||
3 | 3 | ||
4 | use Shaarli\Config\ConfigManager; | 4 | use Shaarli\Config\ConfigManager; |
5 | use Shaarli\History; | 5 | use Shaarli\History; |
6 | use Shaarli\Plugin\PluginManager; | ||
6 | use Slim\Container; | 7 | use Slim\Container; |
7 | use Slim\Http\Environment; | 8 | use Slim\Http\Environment; |
8 | use Slim\Http\Request; | 9 | use Slim\Http\Request; |
@@ -56,6 +57,7 @@ class ApiMiddlewareTest extends \Shaarli\TestCase | |||
56 | $this->container = new Container(); | 57 | $this->container = new Container(); |
57 | $this->container['conf'] = $this->conf; | 58 | $this->container['conf'] = $this->conf; |
58 | $this->container['history'] = $history; | 59 | $this->container['history'] = $history; |
60 | $this->container['pluginManager'] = new PluginManager($this->conf); | ||
59 | } | 61 | } |
60 | 62 | ||
61 | /** | 63 | /** |