@@ -144,6 +144,9 @@ |
||
| 144 | 144 | return true; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $path |
|
| 149 | + */ |
|
| 147 | 150 | public function url_stat($path) { |
| 148 | 151 | if (isset(self::$data[$path])) { |
| 149 | 152 | $size = strlen(self::$data[$path]); |
@@ -777,7 +777,7 @@ |
||
| 777 | 777 | /** |
| 778 | 778 | * check if path points to a files version |
| 779 | 779 | * |
| 780 | - * @param $path |
|
| 780 | + * @param string $path |
|
| 781 | 781 | * @return bool |
| 782 | 782 | */ |
| 783 | 783 | protected function isVersion($path) { |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | |
| 22 | 22 | namespace OCA\user_ldap\tests\integration\lib; |
| 23 | 23 | |
| 24 | -use OCA\user_ldap\lib\user\Manager as LDAPUserManager; |
|
| 25 | 24 | use OCA\user_ldap\tests\integration\AbstractIntegrationTest; |
| 26 | 25 | use OCA\User_LDAP\Mapping\UserMapping; |
| 27 | 26 | use OCA\user_ldap\USER_LDAP; |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | return true; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $path |
|
| 149 | + */ |
|
| 147 | 150 | public function url_stat($path) { |
| 148 | 151 | if (isset(self::$data[$path])) { |
| 149 | 152 | $size = strlen(self::$data[$path]); |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | * Set a value in the cache if it's not already stored |
| 121 | 121 | * |
| 122 | 122 | * @param string $key |
| 123 | - * @param mixed $value |
|
| 123 | + * @param integer $value |
|
| 124 | 124 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
| 125 | 125 | * @return bool |
| 126 | 126 | */ |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | return true; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $path |
|
| 149 | + */ |
|
| 147 | 150 | public function url_stat($path) { |
| 148 | 151 | if (isset(self::$data[$path])) { |
| 149 | 152 | $size = strlen(self::$data[$path]); |
@@ -357,6 +357,9 @@ |
||
| 357 | 357 | $result->closeCursor(); |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | + /** |
|
| 361 | + * @param string $user |
|
| 362 | + */ |
|
| 360 | 363 | protected function mockUserSession($user) { |
| 361 | 364 | $mockUser = $this->getMockBuilder('\OCP\IUser') |
| 362 | 365 | ->disableOriginalConstructor() |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | $this->user = new \OC\User\User('', new \Test\Util\User\Dummy); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @return \OC\Files\Storage\Storage |
|
| 23 | + */ |
|
| 21 | 24 | protected function getMockStorage() { |
| 22 | 25 | $storage = $this->getMock('\OCP\Files\Storage'); |
| 23 | 26 | $storage->expects($this->any()) |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | $this->user = new \OC\User\User('', new \Test\Util\User\Dummy); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @return \OC\Files\Storage\Storage |
|
| 23 | + */ |
|
| 21 | 24 | protected function getMockStorage() { |
| 22 | 25 | $storage = $this->getMock('\OCP\Files\Storage'); |
| 23 | 26 | $storage->expects($this->any()) |