diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-01-17 21:34:12 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-01-18 09:56:32 +0100 |
commit | e26e2060f5470ce8bf4c5973284bae07b8af170a (patch) | |
tree | adf8512f93f5559ba87d0c9931969ae4ebea7133 /tests/updater/DummyUpdater.php | |
parent | cf92b4dd1521241eefc58eaf6dcd202cd83969d8 (diff) | |
download | Shaarli-e26e2060f5470ce8bf4c5973284bae07b8af170a.tar.gz Shaarli-e26e2060f5470ce8bf4c5973284bae07b8af170a.tar.zst Shaarli-e26e2060f5470ce8bf4c5973284bae07b8af170a.zip |
Add and update unit test for the new system (Bookmark + Service)
See #1307
Diffstat (limited to 'tests/updater/DummyUpdater.php')
-rw-r--r-- | tests/updater/DummyUpdater.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/updater/DummyUpdater.php b/tests/updater/DummyUpdater.php index 9e866f1f..07c7f5c4 100644 --- a/tests/updater/DummyUpdater.php +++ b/tests/updater/DummyUpdater.php | |||
@@ -4,6 +4,7 @@ namespace Shaarli\Updater; | |||
4 | use Exception; | 4 | use Exception; |
5 | use ReflectionClass; | 5 | use ReflectionClass; |
6 | use ReflectionMethod; | 6 | use ReflectionMethod; |
7 | use Shaarli\Bookmark\BookmarkFileService; | ||
7 | use Shaarli\Bookmark\LinkDB; | 8 | use Shaarli\Bookmark\LinkDB; |
8 | use Shaarli\Config\ConfigManager; | 9 | use Shaarli\Config\ConfigManager; |
9 | 10 | ||
@@ -16,14 +17,14 @@ class DummyUpdater extends Updater | |||
16 | /** | 17 | /** |
17 | * Object constructor. | 18 | * Object constructor. |
18 | * | 19 | * |
19 | * @param array $doneUpdates Updates which are already done. | 20 | * @param array $doneUpdates Updates which are already done. |
20 | * @param LinkDB $linkDB LinkDB instance. | 21 | * @param BookmarkFileService $bookmarkService LinkDB instance. |
21 | * @param ConfigManager $conf Configuration Manager instance. | 22 | * @param ConfigManager $conf Configuration Manager instance. |
22 | * @param boolean $isLoggedIn True if the user is logged in. | 23 | * @param boolean $isLoggedIn True if the user is logged in. |
23 | */ | 24 | */ |
24 | public function __construct($doneUpdates, $linkDB, $conf, $isLoggedIn) | 25 | public function __construct($doneUpdates, $bookmarkService, $conf, $isLoggedIn) |
25 | { | 26 | { |
26 | parent::__construct($doneUpdates, $linkDB, $conf, $isLoggedIn); | 27 | parent::__construct($doneUpdates, $bookmarkService, $conf, $isLoggedIn); |
27 | 28 | ||
28 | // Retrieve all update methods. | 29 | // Retrieve all update methods. |
29 | // For unit test, only retrieve final methods, | 30 | // For unit test, only retrieve final methods, |