- self::$refDb = new \ReferenceLinkDB();
- self::$refDb->write(self::$testDatastore);
- self::$linkDb = new LinkDB(self::$testDatastore, true, false);
+ $mutex = new NoMutex();
+ static::$conf = new ConfigManager('tests/utils/config/configJson');
+ static::$conf->set('resource.datastore', static::$testDatastore);
+ static::$refDb = new \ReferenceLinkDB();
+ static::$refDb->write(static::$testDatastore);
+ static::$history = new History('sandbox/history.php');
+ static::$pluginManager = new PluginManager(static::$conf);
+ static::$bookmarkService = new BookmarkFileService(
+ static::$conf,
+ static::$pluginManager,
+ static::$history,
+ $mutex,
+ true
+ );
+ $factory = new FormatterFactory(static::$conf, true);
+ static::$formatter = $factory->getFormatter('raw');
+ }
+
+ public function setUp(): void
+ {
+ $this->netscapeBookmarkUtils = new NetscapeBookmarkUtils(
+ static::$bookmarkService,
+ static::$conf,
+ static::$history
+ );