]> source.dussan.org Git - nextcloud-server.git/commitdiff
improved trashbin test
authorFlorin Peter <github@florin-peter.de>
Fri, 24 May 2013 19:35:18 +0000 (21:35 +0200)
committerFlorin Peter <github@florin-peter.de>
Fri, 24 May 2013 21:12:07 +0000 (23:12 +0200)
apps/files_encryption/tests/trashbin.php

index b62041a6d3c2c1e9294e529ddfd18ba968cb72fe..c317c024eaef854d53d61136592e96130e45480d 100755 (executable)
@@ -235,7 +235,7 @@ class Test_Encryption_Trashbin extends \PHPUnit_Framework_TestCase
                $trashFileSuffix = null;
                // find created file with timestamp
                foreach($trashFiles as $file) {
-                       if(strncmp($file['path'], $filename, strlen($filename))) {
+                       if(strncmp($file['name'], $filename, strlen($filename)) == 0) {
                                $path_parts = pathinfo($file['name']);
                                $trashFileSuffix = $path_parts['extension'];
                        }