@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * Execute action. |
| 54 | 54 | * |
| 55 | - * @return mixed |
|
| 55 | + * @return boolean |
|
| 56 | 56 | */ |
| 57 | 57 | public function action($tag_id) |
| 58 | 58 | { |
@@ -116,6 +116,9 @@ |
||
| 116 | 116 | $this->assertEquals($this->defaultPermissions, $this->simpleRbacAuthorize->config('permissions')); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | + /** |
|
| 120 | + * @param string $instance |
|
| 121 | + */ |
|
| 119 | 122 | protected function assertConstructorPermissions($instance, $config, $permissions) |
| 120 | 123 | { |
| 121 | 124 | $reflectedClass = new ReflectionClass($instance); |
@@ -101,6 +101,9 @@ |
||
| 101 | 101 | $this->Action->execute(); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | + /** |
|
| 105 | + * @param integer $id |
|
| 106 | + */ |
|
| 104 | 107 | protected function _initializeAction($id, $post = []) |
| 105 | 108 | { |
| 106 | 109 | $this->_initializeController([ |
@@ -152,6 +152,9 @@ |
||
| 152 | 152 | $renderer->error($error); |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | + /** |
|
| 156 | + * @param string $text |
|
| 157 | + */ |
|
| 155 | 158 | protected function _xmlMessage($text) |
| 156 | 159 | { |
| 157 | 160 | return '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . $text . "\n"; |
@@ -19,8 +19,6 @@ |
||
| 19 | 19 | use CakeDC\Api\Test\ConfigTrait; |
| 20 | 20 | use CakeDC\Api\Test\FixturesTrait; |
| 21 | 21 | use Cake\Controller\Controller; |
| 22 | -use Cake\Network\Request; |
|
| 23 | -use Cake\Network\Response; |
|
| 24 | 22 | use CakeDC\Api\TestSuite\TestCase; |
| 25 | 23 | |
| 26 | 24 | class ServiceTest extends TestCase |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | /** |
| 67 | 67 | * Execute action. |
| 68 | 68 | * |
| 69 | - * @return mixed |
|
| 69 | + * @return string|null |
|
| 70 | 70 | * @throws Exception |
| 71 | 71 | */ |
| 72 | 72 | public function execute() |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * Execute action. |
| 54 | 54 | * |
| 55 | - * @return mixed |
|
| 55 | + * @return boolean |
|
| 56 | 56 | */ |
| 57 | 57 | public function action($tag_id) |
| 58 | 58 | { |
@@ -101,6 +101,9 @@ |
||
| 101 | 101 | $this->Action->execute(); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | + /** |
|
| 105 | + * @param integer $id |
|
| 106 | + */ |
|
| 104 | 107 | protected function _initializeAction($id, $post = []) |
| 105 | 108 | { |
| 106 | 109 | $this->_initializeController([ |
@@ -19,8 +19,6 @@ |
||
| 19 | 19 | use CakeDC\Api\Test\ConfigTrait; |
| 20 | 20 | use CakeDC\Api\Test\FixturesTrait; |
| 21 | 21 | use Cake\Controller\Controller; |
| 22 | -use Cake\Network\Request; |
|
| 23 | -use Cake\Network\Response; |
|
| 24 | 22 | use CakeDC\Api\TestSuite\TestCase; |
| 25 | 23 | |
| 26 | 24 | class ServiceTest extends TestCase |