use Shaarli\Bookmark\LinkDB;
use Shaarli\Config\ConfigManager;
use Shaarli\History;
+use Shaarli\Plugin\PluginManager;
use Slim\Container;
use Slim\Http\Environment;
use Slim\Http\Request;
$this->container = new Container();
$this->container['conf'] = $this->conf;
- $this->container['db'] = new BookmarkFileService($this->conf, $history, $mutex, true);
+ $pluginManager = new PluginManager($this->conf);
+ $this->container['db'] = new BookmarkFileService(
+ $this->conf,
+ $pluginManager,
+ $history,
+ $mutex,
+ true
+ );
$this->container['history'] = null;
$this->controller = new Links($this->container);
$response = $this->controller->getLinks($request, new Response());
$this->assertEquals(200, $response->getStatusCode());
$data = json_decode((string) $response->getBody(), true);
- $this->assertEquals(4, count($data));
+ $this->assertEquals(5, count($data));
$this->assertEquals(6, $data[0]['id']);
// wildcard: placeholder at the middle