diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 18:21:23 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 18:21:23 +0200 |
commit | 6c96a5273b2df54fe58a515c7863276095820c63 (patch) | |
tree | f0443b3a313323a3c4c395121703c2cb3437e94b /apps/files_encryption/tests/trashbin.php | |
parent | 25493227636d19ff6bc28ef10c0c319cc572ea28 (diff) | |
download | nextcloud-server-6c96a5273b2df54fe58a515c7863276095820c63.tar.gz nextcloud-server-6c96a5273b2df54fe58a515c7863276095820c63.zip |
fixing some unit tests
Diffstat (limited to 'apps/files_encryption/tests/trashbin.php')
-rwxr-xr-x | apps/files_encryption/tests/trashbin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/tests/trashbin.php b/apps/files_encryption/tests/trashbin.php index 67854bd80d5..985271b9021 100755 --- a/apps/files_encryption/tests/trashbin.php +++ b/apps/files_encryption/tests/trashbin.php @@ -122,7 +122,7 @@ class Test_Encryption_Trashbin extends \PHPUnit_Framework_TestCase { $filename = 'tmp-' . time() . '.txt'; // save file with content - $cryptedFile = file_put_contents('crypt:///' .$this->userId. '/files/'. $filename, $this->dataShort); + $cryptedFile = file_put_contents('crypt:///' .\Test_Encryption_Trashbin::TEST_ENCRYPTION_TRASHBIN_USER1. '/files/'. $filename, $this->dataShort); // test that data was successfully written $this->assertTrue(is_int($cryptedFile)); @@ -223,7 +223,7 @@ class Test_Encryption_Trashbin extends \PHPUnit_Framework_TestCase { function testPermanentDeleteFile() { // generate filename - $filename = '/tmp-' . time() . '.txt'; + $filename = 'tmp-' . time() . '.txt'; // save file with content $cryptedFile = file_put_contents('crypt:///' .$this->userId. '/files/' . $filename, $this->dataShort); |