]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix unit tests
authorBjoern Schiessle <schiessle@owncloud.com>
Wed, 25 Jun 2014 10:38:26 +0000 (12:38 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Wed, 25 Jun 2014 10:38:26 +0000 (12:38 +0200)
apps/files_encryption/tests/keymanager.php

index 7c36a4689b0a97511297db4c4b7d5438462bb281..3339f8c73e6dfe6807df5a4c8459db0b1256a3d5 100644 (file)
@@ -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'));