@@ -132,6 +132,10 @@ |
||
132 | 132 | $this->assertEquals(2, $collection->count()); |
133 | 133 | } |
134 | 134 | |
135 | + /** |
|
136 | + * @param PluginCollection $object |
|
137 | + * @param string $property |
|
138 | + */ |
|
135 | 139 | protected function getPropertyValue($object, $property) |
136 | 140 | { |
137 | 141 | $refl = new \ReflectionObject($object); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | /** |
185 | 185 | * makeCollection |
186 | 186 | * |
187 | - * @return PluginCollection |
|
187 | + * @return Mockery\MockInterface |
|
188 | 188 | */ |
189 | 189 | private function makeCollection() |
190 | 190 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |
195 | - * @return Factory |
|
195 | + * @return Mockery\MockInterface |
|
196 | 196 | */ |
197 | 197 | private function makeViewFactory() |
198 | 198 | { |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | /** |
206 | 206 | * makeRegister |
207 | 207 | * |
208 | - * @return PluginRegister |
|
208 | + * @return Mockery\MockInterface |
|
209 | 209 | */ |
210 | 210 | private function makeRegister() |
211 | 211 | { |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | } |
216 | 216 | |
217 | 217 | /** |
218 | - * @return Application |
|
218 | + * @return Mockery\MockInterface |
|
219 | 219 | */ |
220 | 220 | private function makeApp() |
221 | 221 | { |
@@ -229,6 +229,9 @@ discard block |
||
229 | 229 | return Mockery::mock('\Xpressengine\Plugin\PluginEntity'); |
230 | 230 | } |
231 | 231 | |
232 | + /** |
|
233 | + * @param PluginHandler $handler |
|
234 | + */ |
|
232 | 235 | private function setConfig($handler) |
233 | 236 | { |
234 | 237 | |
@@ -237,6 +240,9 @@ discard block |
||
237 | 240 | return $config; |
238 | 241 | } |
239 | 242 | |
243 | + /** |
|
244 | + * @param Mockery\MockInterface $plugins |
|
245 | + */ |
|
240 | 246 | private function getHandler($dir = null, $plugins = null, $factory = null, $register = null, $app = null) |
241 | 247 | { |
242 | 248 | if($dir === null) $dir = __DIR__.'/plugins'; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | |
21 | 21 | /** |
22 | - * @return boolean |
|
22 | + * @return boolean|null |
|
23 | 23 | */ |
24 | 24 | public function install() |
25 | 25 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
30 | - * @return boolean |
|
30 | + * @return boolean|null |
|
31 | 31 | */ |
32 | 32 | public function unInstall() |
33 | 33 | { |
@@ -91,6 +91,7 @@ |
||
91 | 91 | /** |
92 | 92 | * getReaderMock |
93 | 93 | * |
94 | + * @param string $dir |
|
94 | 95 | * @return \Mockery\MockInterface |
95 | 96 | */ |
96 | 97 | protected function getReaderMock($dir) |
@@ -77,6 +77,9 @@ |
||
77 | 77 | $this->assertEquals(['a'=>'b'], $container->all()); |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param Container $container |
|
82 | + */ |
|
80 | 83 | protected function getRepoProperty($container) |
81 | 84 | { |
82 | 85 | $refl = new \ReflectionObject($container); |
@@ -45,6 +45,10 @@ |
||
45 | 45 | ]); |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param BasicImporter $object |
|
50 | + * @param string $methodName |
|
51 | + */ |
|
48 | 52 | private function invokeMethod(&$object, $methodName, array $parameters = array()) |
49 | 53 | { |
50 | 54 | $reflection = new \ReflectionClass(get_class($object)); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * get settings uri |
67 | 67 | * |
68 | - * @return string|null |
|
68 | + * @return string |
|
69 | 69 | */ |
70 | 70 | public static function getSettingsURI() |
71 | 71 | { |
@@ -177,6 +177,9 @@ discard block |
||
177 | 177 | parent::setUp(); |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @param string $property |
|
182 | + */ |
|
180 | 183 | protected function getPropertyValue($object, $property) |
181 | 184 | { |
182 | 185 | $refl = new \ReflectionObject($object); |
@@ -186,7 +189,7 @@ discard block |
||
186 | 189 | } |
187 | 190 | |
188 | 191 | /** |
189 | - * @return Container |
|
192 | + * @return Mockery\MockInterface |
|
190 | 193 | */ |
191 | 194 | protected function getContainer() |
192 | 195 | { |
@@ -244,7 +247,7 @@ discard block |
||
244 | 247 | } |
245 | 248 | |
246 | 249 | /** |
247 | - * @return SkinInstanceStore |
|
250 | + * @return Mockery\MockInterface |
|
248 | 251 | */ |
249 | 252 | protected function getStore() |
250 | 253 | { |
@@ -253,10 +256,10 @@ discard block |
||
253 | 256 | } |
254 | 257 | |
255 | 258 | /** |
256 | - * @param $id |
|
259 | + * @param string $id |
|
257 | 260 | * @param $type |
258 | 261 | * |
259 | - * @return Mockery\MockInterface |
|
262 | + * @return string |
|
260 | 263 | */ |
261 | 264 | protected function makeSkinMock($id) |
262 | 265 | { |
@@ -90,7 +90,7 @@ |
||
90 | 90 | /** |
91 | 91 | * getConfigManager |
92 | 92 | * |
93 | - * @return ConfigManager |
|
93 | + * @return Mockery\MockInterface |
|
94 | 94 | */ |
95 | 95 | protected function getConfigManager() |
96 | 96 | { |