Fix 2 assertions

This commit is contained in:
Joas Schilling 2015-01-29 16:09:35 +01:00
parent c78e3c4a7f
commit 9a7dd57bc8
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}
}