diff options
Diffstat (limited to 'tests/api/controllers/tags/PutTagTest.php')
-rw-r--r-- | tests/api/controllers/tags/PutTagTest.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/api/controllers/tags/PutTagTest.php b/tests/api/controllers/tags/PutTagTest.php index c73f6d3b..045473e6 100644 --- a/tests/api/controllers/tags/PutTagTest.php +++ b/tests/api/controllers/tags/PutTagTest.php | |||
@@ -8,6 +8,7 @@ use Shaarli\Bookmark\BookmarkFileService; | |||
8 | use Shaarli\Bookmark\LinkDB; | 8 | use Shaarli\Bookmark\LinkDB; |
9 | use Shaarli\Config\ConfigManager; | 9 | use Shaarli\Config\ConfigManager; |
10 | use Shaarli\History; | 10 | use Shaarli\History; |
11 | use Shaarli\Plugin\PluginManager; | ||
11 | use Slim\Container; | 12 | use Slim\Container; |
12 | use Slim\Http\Environment; | 13 | use Slim\Http\Environment; |
13 | use Slim\Http\Request; | 14 | use Slim\Http\Request; |
@@ -55,6 +56,9 @@ class PutTagTest extends \Shaarli\TestCase | |||
55 | */ | 56 | */ |
56 | protected $controller; | 57 | protected $controller; |
57 | 58 | ||
59 | /** @var PluginManager */ | ||
60 | protected $pluginManager; | ||
61 | |||
58 | /** | 62 | /** |
59 | * Number of JSON field per link. | 63 | * Number of JSON field per link. |
60 | */ | 64 | */ |
@@ -73,7 +77,14 @@ class PutTagTest extends \Shaarli\TestCase | |||
73 | $refHistory = new \ReferenceHistory(); | 77 | $refHistory = new \ReferenceHistory(); |
74 | $refHistory->write(self::$testHistory); | 78 | $refHistory->write(self::$testHistory); |
75 | $this->history = new History(self::$testHistory); | 79 | $this->history = new History(self::$testHistory); |
76 | $this->bookmarkService = new BookmarkFileService($this->conf, $this->history, $mutex, true); | 80 | $this->pluginManager = new PluginManager($this->conf); |
81 | $this->bookmarkService = new BookmarkFileService( | ||
82 | $this->conf, | ||
83 | $this->pluginManager, | ||
84 | $this->history, | ||
85 | $mutex, | ||
86 | true | ||
87 | ); | ||
77 | 88 | ||
78 | $this->container = new Container(); | 89 | $this->container = new Container(); |
79 | $this->container['conf'] = $this->conf; | 90 | $this->container['conf'] = $this->conf; |