summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblizzz <blizzz@owncloud.com>2014-02-14 19:09:46 +0100
committerblizzz <blizzz@owncloud.com>2014-02-14 19:09:46 +0100
commite2c0c0e256be02b837eee2c8f30ad3318cbb5385 (patch)
treec816816ae540241a59c267118b48ed83df84453b
parent2a7509ee50b3d16392c54c44cad003e8c867e349 (diff)
parent29336683555b9ce8e4c365d6d0b02a135815b5f2 (diff)
downloadnextcloud-server-e2c0c0e256be02b837eee2c8f30ad3318cbb5385.tar.gz
nextcloud-server-e2c0c0e256be02b837eee2c8f30ad3318cbb5385.zip
Merge pull request #7206 from owncloud/fix_enc_tests
fileinfo is no longer a array
-rw-r--r--apps/files_encryption/tests/hooks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/tests/hooks.php b/apps/files_encryption/tests/hooks.php
index 44525791743..7d926caea1b 100644
--- a/apps/files_encryption/tests/hooks.php
+++ b/apps/files_encryption/tests/hooks.php
@@ -203,7 +203,7 @@ class Test_Encryption_Hooks extends \PHPUnit_Framework_TestCase {
$fileInfo = $this->user1View->getFileInfo($this->filename);
// check if we have a valid file info
- $this->assertTrue(is_array($fileInfo));
+ $this->assertTrue($fileInfo instanceof \OC\Files\FileInfo);
// share the file with user2
\OCP\Share::shareItem('file', $fileInfo['fileid'], \OCP\Share::SHARE_TYPE_USER, self::TEST_ENCRYPTION_HOOKS_USER2, OCP\PERMISSION_ALL);