@@ -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 | { |
@@ -179,6 +179,10 @@ discard block |
||
179 | 179 | $this->assertCount(0, $themes); |
180 | 180 | } |
181 | 181 | |
182 | + /** |
|
183 | + * @param Mockery\MockInterface $register |
|
184 | + * @param Mockery\MockInterface $config |
|
185 | + */ |
|
182 | 186 | protected function getHandler($register = null, $config = null, $blankTheme = 'theme/xpressengine@blank') |
183 | 187 | { |
184 | 188 | if ($register === null) { |
@@ -234,6 +238,9 @@ discard block |
||
234 | 238 | return $container; |
235 | 239 | } |
236 | 240 | |
241 | + /** |
|
242 | + * @param string $id |
|
243 | + */ |
|
237 | 244 | protected function makeThemeMock($id) |
238 | 245 | { |
239 | 246 | $postfix = str_replace(['/', '@'], '_', $id); |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | use Mockery as m; |
4 | -use Xpressengine\Translation\LangData; |
|
5 | 4 | use Xpressengine\Translation\Loaders\LangFileLoader; |
6 | 5 | |
7 | 6 | class LangFileLoaderTest extends PHPUnit_Framework_TestCase |
@@ -4,7 +4,6 @@ |
||
4 | 4 | */ |
5 | 5 | namespace Xpressengine\Tests\Trash; |
6 | 6 | |
7 | -use Mockery as M; |
|
8 | 7 | use PHPUnit_Framework_TestCase; |
9 | 8 | use Xpressengine\Trash\TrashManager; |
10 | 9 | use Xpressengine\Trash\WasteInterface; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace Xpressengine\Tests\UIObject; |
3 | 3 | |
4 | 4 | use Mockery; |
5 | -use Mockery\Mock; |
|
6 | 5 | use Xpressengine\UIObject\AbstractUIObject; |
7 | 6 | |
8 | 7 | class AbstractUIObjectTest extends \PHPUnit_Framework_TestCase { |
@@ -113,6 +113,9 @@ |
||
113 | 113 | return 'UIObject_'.$postfix; |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param string $property |
|
118 | + */ |
|
116 | 119 | protected function getPropertyValue(UIObjectHandler $handler, $property) |
117 | 120 | { |
118 | 121 | $refl = new \ReflectionObject($handler); |