summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-06-25 12:38:26 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-25 12:38:26 +0200
commitd3d1955ef492e24d75c72d0dc920f3c6c3951a4b (patch)
tree2bbc18ce028bfd8431e0e2c0c4dd8095655870e4 /apps/files_encryption
parent3d0805f27d1d84399ed87403f33cfbde556ae69a (diff)
downloadnextcloud-server-d3d1955ef492e24d75c72d0dc920f3c6c3951a4b.tar.gz
nextcloud-server-d3d1955ef492e24d75c72d0dc920f3c6c3951a4b.zip
fix unit tests
Diffstat (limited to 'apps/files_encryption')
-rw-r--r--apps/files_encryption/tests/keymanager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/tests/keymanager.php b/apps/files_encryption/tests/keymanager.php
index 7c36a4689b0..3339f8c73e6 100644
--- a/apps/files_encryption/tests/keymanager.php
+++ b/apps/files_encryption/tests/keymanager.php
@@ -248,14 +248,14 @@ class Test_Encryption_Keymanager extends \PHPUnit_Framework_TestCase {
function testKeySetPreperation() {
$basePath = '/'.Test_Encryption_Keymanager::TEST_USER.'/files';
- $path = '/folder1/subfolder/subsubfolder';
+ $path = '/folder1/subfolder/subsubfolder/file.txt';
$this->assertFalse($this->view->is_dir($basePath . '/testKeySetPreperation'));
$result = TestProtectedKeymanagerMethods::testKeySetPreperation($this->view, $path, $basePath);
// return path without leading slash
- $this->assertSame('folder1/subfolder/subsubfolder', $result);
+ $this->assertSame('folder1/subfolder/subsubfolder/file.txt', $result);
// check if directory structure was created
$this->assertTrue($this->view->is_dir($basePath . '/folder1/subfolder/subsubfolder'));