From: Florin Peter Date: Fri, 24 May 2013 19:35:18 +0000 (+0200) Subject: improved trashbin test X-Git-Tag: v5.0.7~46^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=210ae9e5f7c2e23eaf69e7a562d4cfc6dfc626a6;p=nextcloud-server.git improved trashbin test --- diff --git a/apps/files_encryption/tests/trashbin.php b/apps/files_encryption/tests/trashbin.php index b62041a6d3c..c317c024eae 100755 --- a/apps/files_encryption/tests/trashbin.php +++ b/apps/files_encryption/tests/trashbin.php @@ -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']; }