summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-29 16:09:35 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-29 16:09:35 +0100
commit9a7dd57bc862c2e2b2aafd1d17b99cea9fd748ae (patch)
tree06d84d0df73a91ecb839ae57d63e378934e9b459 /apps/files_encryption
parentc78e3c4a7fa1d2f474ab58551e67a50e093f6ed8 (diff)
downloadnextcloud-server-9a7dd57bc862c2e2b2aafd1d17b99cea9fd748ae.tar.gz
nextcloud-server-9a7dd57bc862c2e2b2aafd1d17b99cea9fd748ae.zip
Fix 2 assertions
Diffstat (limited to 'apps/files_encryption')
-rwxr-xr-xapps/files_encryption/tests/share.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_encryption/tests/share.php b/apps/files_encryption/tests/share.php
index 5632607319b..44fd2ac9c7c 100755
--- a/apps/files_encryption/tests/share.php
+++ b/apps/files_encryption/tests/share.php
@@ -218,7 +218,7 @@ class Share extends TestCase {
$cryptedFile = file_put_contents('crypt:///' . self::TEST_ENCRYPTION_SHARE_USER1 . '/files/' . $this->filename, $this->dataShort);
// test that data was successfully written
- $this->assertTrue(is_int($cryptedFile));
+ $this->assertInternalType('int', $cryptedFile);
// disable encryption proxy to prevent recursive calls
$proxyStatus = \OC_FileProxy::$enabled;
@@ -229,7 +229,7 @@ class Share extends TestCase {
'/' . self::TEST_ENCRYPTION_SHARE_USER1 . '/files/' . $this->filename);
// check if we have a valid file info
- $this->assertTrue($fileInfo instanceof \OC\Files\FileInfo);
+ $this->assertInstanceOf('\\OC\\Files\\FileInfo', $fileInfo);
// check if the unencrypted file size is stored
$this->assertGreaterThan(0, $fileInfo['unencrypted_size']);
@@ -1384,4 +1384,4 @@ class Share extends TestCase {
\OC\Files\Filesystem::unlink($folder);
}
-} \ No newline at end of file
+}