|
|
|
|
@ -150,7 +150,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase { |
|
|
|
|
'/' . \Test_Encryption_Share::TEST_ENCRYPTION_SHARE_USER1 . '/files/' . $this->filename); |
|
|
|
|
|
|
|
|
|
// check if we have a valid file info |
|
|
|
|
$this->assertTrue(is_array($fileInfo)); |
|
|
|
|
$this->assertTrue($fileInfo instanceof \OC\Files\FileInfo); |
|
|
|
|
|
|
|
|
|
// check if the unencrypted file size is stored |
|
|
|
|
$this->assertGreaterThan(0, $fileInfo['unencrypted_size']); |
|
|
|
|
@ -308,7 +308,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase { |
|
|
|
|
'/' . \Test_Encryption_Share::TEST_ENCRYPTION_SHARE_USER1 . '/files' . $this->folder1); |
|
|
|
|
|
|
|
|
|
// check if we have a valid file info |
|
|
|
|
$this->assertTrue(is_array($fileInfo)); |
|
|
|
|
$this->assertTrue($fileInfo instanceof \OC\Files\FileInfo); |
|
|
|
|
|
|
|
|
|
// re-enable the file proxy |
|
|
|
|
\OC_FileProxy::$enabled = $proxyStatus; |
|
|
|
|
@ -384,7 +384,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase { |
|
|
|
|
. $this->subfolder); |
|
|
|
|
|
|
|
|
|
// check if we have a valid file info |
|
|
|
|
$this->assertTrue(is_array($fileInfoSubFolder)); |
|
|
|
|
$this->assertTrue($fileInfoSubFolder instanceof \OC\Files\FileInfo); |
|
|
|
|
|
|
|
|
|
// re-enable the file proxy |
|
|
|
|
\OC_FileProxy::$enabled = $proxyStatus; |
|
|
|
|
@ -418,7 +418,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase { |
|
|
|
|
. $this->subsubfolder . '/' . $this->filename); |
|
|
|
|
|
|
|
|
|
// check if we have fileInfos |
|
|
|
|
$this->assertTrue(is_array($fileInfo)); |
|
|
|
|
$this->assertTrue($fileInfo instanceof \OC\Files\FileInfo); |
|
|
|
|
|
|
|
|
|
// share the file with user3 |
|
|
|
|
\OCP\Share::shareItem('file', $fileInfo['fileid'], \OCP\Share::SHARE_TYPE_USER, \Test_Encryption_Share::TEST_ENCRYPTION_SHARE_USER4, OCP\PERMISSION_ALL); |
|
|
|
|
@ -513,7 +513,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase { |
|
|
|
|
'/' . \Test_Encryption_Share::TEST_ENCRYPTION_SHARE_USER1 . '/files/' . $this->filename); |
|
|
|
|
|
|
|
|
|
// check if we have a valid file info |
|
|
|
|
$this->assertTrue(is_array($fileInfo)); |
|
|
|
|
$this->assertTrue($fileInfo instanceof \OC\Files\FileInfo); |
|
|
|
|
|
|
|
|
|
// check if the unencrypted file size is stored |
|
|
|
|
$this->assertGreaterThan(0, $fileInfo['unencrypted_size']); |
|
|
|
|
@ -589,7 +589,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase { |
|
|
|
|
'/' . \Test_Encryption_Share::TEST_ENCRYPTION_SHARE_USER1 . '/files/' . $this->filename); |
|
|
|
|
|
|
|
|
|
// check if we have a valid file info |
|
|
|
|
$this->assertTrue(is_array($fileInfo)); |
|
|
|
|
$this->assertTrue($fileInfo instanceof \OC\Files\FileInfo); |
|
|
|
|
|
|
|
|
|
// check if the unencrypted file size is stored |
|
|
|
|
$this->assertGreaterThan(0, $fileInfo['unencrypted_size']); |
|
|
|
|
@ -876,7 +876,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase { |
|
|
|
|
'/' . \Test_Encryption_Share::TEST_ENCRYPTION_SHARE_USER1 . '/files/' . $this->filename); |
|
|
|
|
|
|
|
|
|
// check if we have a valid file info |
|
|
|
|
$this->assertTrue(is_array($fileInfo)); |
|
|
|
|
$this->assertTrue($fileInfo instanceof \OC\Files\FileInfo); |
|
|
|
|
|
|
|
|
|
// check if the unencrypted file size is stored |
|
|
|
|
$this->assertGreaterThan(0, $fileInfo['unencrypted_size']); |
|
|
|
|
|