diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-13 12:05:08 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-10-13 12:05:08 +0200 |
commit | b6f678a5a1d15acf284ebcec16c905e976671ce1 (patch) | |
tree | 33c7da831482ed79c44896ef19c73c72ada84f2e /tests/updater/DummyUpdater.php | |
parent | b14687036b9b800681197f51fdc47e62f0c88e2e (diff) | |
parent | 1c1520b6b98ab20201bfe15577782a52320339df (diff) | |
download | Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.tar.gz Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.tar.zst Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.zip |
Merge branch 'v0.12' into latest
Diffstat (limited to 'tests/updater/DummyUpdater.php')
-rw-r--r-- | tests/updater/DummyUpdater.php | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/updater/DummyUpdater.php b/tests/updater/DummyUpdater.php index 9e866f1f..3403233f 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, |
@@ -36,7 +37,7 @@ class DummyUpdater extends Updater | |||
36 | * | 37 | * |
37 | * @return bool true. | 38 | * @return bool true. |
38 | */ | 39 | */ |
39 | final private function updateMethodDummy1() | 40 | final protected function updateMethodDummy1() |
40 | { | 41 | { |
41 | return true; | 42 | return true; |
42 | } | 43 | } |
@@ -46,7 +47,7 @@ class DummyUpdater extends Updater | |||
46 | * | 47 | * |
47 | * @return bool true. | 48 | * @return bool true. |
48 | */ | 49 | */ |
49 | final private function updateMethodDummy2() | 50 | final protected function updateMethodDummy2() |
50 | { | 51 | { |
51 | return true; | 52 | return true; |
52 | } | 53 | } |
@@ -56,7 +57,7 @@ class DummyUpdater extends Updater | |||
56 | * | 57 | * |
57 | * @return bool true. | 58 | * @return bool true. |
58 | */ | 59 | */ |
59 | final private function updateMethodDummy3() | 60 | final protected function updateMethodDummy3() |
60 | { | 61 | { |
61 | return true; | 62 | return true; |
62 | } | 63 | } |
@@ -66,7 +67,7 @@ class DummyUpdater extends Updater | |||
66 | * | 67 | * |
67 | * @throws Exception error. | 68 | * @throws Exception error. |
68 | */ | 69 | */ |
69 | final private function updateMethodException() | 70 | final protected function updateMethodException() |
70 | { | 71 | { |
71 | throw new Exception('whatever'); | 72 | throw new Exception('whatever'); |
72 | } | 73 | } |