diff options
Diffstat (limited to 'tests/api/controllers/tags/GetTagsTest.php')
-rw-r--r-- | tests/api/controllers/tags/GetTagsTest.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/api/controllers/tags/GetTagsTest.php b/tests/api/controllers/tags/GetTagsTest.php index b565a8c4..a4b62c51 100644 --- a/tests/api/controllers/tags/GetTagsTest.php +++ b/tests/api/controllers/tags/GetTagsTest.php | |||
@@ -6,6 +6,7 @@ use Shaarli\Bookmark\BookmarkFileService; | |||
6 | use Shaarli\Bookmark\LinkDB; | 6 | use Shaarli\Bookmark\LinkDB; |
7 | use Shaarli\Config\ConfigManager; | 7 | use Shaarli\Config\ConfigManager; |
8 | use Shaarli\History; | 8 | use Shaarli\History; |
9 | use Shaarli\Plugin\PluginManager; | ||
9 | use Slim\Container; | 10 | use Slim\Container; |
10 | use Slim\Http\Environment; | 11 | use Slim\Http\Environment; |
11 | use Slim\Http\Request; | 12 | use Slim\Http\Request; |
@@ -50,6 +51,9 @@ class GetTagsTest extends \Shaarli\TestCase | |||
50 | */ | 51 | */ |
51 | protected $controller; | 52 | protected $controller; |
52 | 53 | ||
54 | /** @var PluginManager */ | ||
55 | protected $pluginManager; | ||
56 | |||
53 | /** | 57 | /** |
54 | * Number of JSON field per link. | 58 | * Number of JSON field per link. |
55 | */ | 59 | */ |
@@ -66,9 +70,14 @@ class GetTagsTest extends \Shaarli\TestCase | |||
66 | $this->refDB = new \ReferenceLinkDB(); | 70 | $this->refDB = new \ReferenceLinkDB(); |
67 | $this->refDB->write(self::$testDatastore); | 71 | $this->refDB->write(self::$testDatastore); |
68 | $history = new History('sandbox/history.php'); | 72 | $history = new History('sandbox/history.php'); |
69 | 73 | $this->pluginManager = new PluginManager($this->conf); | |
70 | $this->bookmarkService = new BookmarkFileService($this->conf, $history, $mutex, true); | 74 | $this->bookmarkService = new BookmarkFileService( |
71 | 75 | $this->conf, | |
76 | $this->pluginManager, | ||
77 | $history, | ||
78 | $mutex, | ||
79 | true | ||
80 | ); | ||
72 | $this->container = new Container(); | 81 | $this->container = new Container(); |
73 | $this->container['conf'] = $this->conf; | 82 | $this->container['conf'] = $this->conf; |
74 | $this->container['db'] = $this->bookmarkService; | 83 | $this->container['db'] = $this->bookmarkService; |