diff options
Diffstat (limited to 'apps/encryption/tests/lib/MigrationTest.php')
-rw-r--r-- | apps/encryption/tests/lib/MigrationTest.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/apps/encryption/tests/lib/MigrationTest.php b/apps/encryption/tests/lib/MigrationTest.php index 65fefa262a7..fc3d014345b 100644 --- a/apps/encryption/tests/lib/MigrationTest.php +++ b/apps/encryption/tests/lib/MigrationTest.php @@ -62,6 +62,9 @@ class MigrationTest extends \Test\TestCase { $this->moduleId = \OCA\Encryption\Crypto\Encryption::ID; } + /** + * @param string $uid + */ protected function createDummyShareKeys($uid) { $this->loginAsUser($uid); @@ -89,6 +92,9 @@ class MigrationTest extends \Test\TestCase { } } + /** + * @param string $uid + */ protected function createDummyUserKeys($uid) { $this->loginAsUser($uid); @@ -98,6 +104,9 @@ class MigrationTest extends \Test\TestCase { $this->view->file_put_contents('/files_encryption/public_keys/' . $uid . '.publicKey', 'publicKey'); } + /** + * @param string $uid + */ protected function createDummyFileKeys($uid) { $this->loginAsUser($uid); @@ -111,6 +120,9 @@ class MigrationTest extends \Test\TestCase { $this->view->file_put_contents($uid . '/files_encryption/keys/folder2/file.2.1/fileKey' , 'data'); } + /** + * @param string $uid + */ protected function createDummyFiles($uid) { $this->loginAsUser($uid); @@ -124,6 +136,9 @@ class MigrationTest extends \Test\TestCase { $this->view->file_put_contents($uid . '/files/folder2/file.2.1/fileKey' , 'data'); } + /** + * @param string $uid + */ protected function createDummyFilesInTrash($uid) { $this->loginAsUser($uid); @@ -239,6 +254,9 @@ class MigrationTest extends \Test\TestCase { } + /** + * @param string $uid + */ protected function verifyFilesInTrash($uid) { $this->loginAsUser($uid); @@ -266,6 +284,9 @@ class MigrationTest extends \Test\TestCase { ); } + /** + * @param string $uid + */ protected function verifyNewKeyPath($uid) { // private key if ($uid !== '') { @@ -394,6 +415,11 @@ class MigrationTest extends \Test\TestCase { } + /** + * @param string $table + * @param string $appid + * @param integer $expected + */ public function verifyDB($table, $appid, $expected) { /** @var \OCP\IDBConnection $connection */ $connection = \OC::$server->getDatabaseConnection(); |