aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/updater/DummyUpdater.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/updater/DummyUpdater.php')
-rw-r--r--tests/updater/DummyUpdater.php21
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;
4use Exception; 4use Exception;
5use ReflectionClass; 5use ReflectionClass;
6use ReflectionMethod; 6use ReflectionMethod;
7use Shaarli\Bookmark\BookmarkFileService;
7use Shaarli\Bookmark\LinkDB; 8use Shaarli\Bookmark\LinkDB;
8use Shaarli\Config\ConfigManager; 9use 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 }