diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-24 21:35:18 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-24 23:12:07 +0200 |
commit | b32823a96e16c3d30beb9db87a3bbad9615ef80d (patch) | |
tree | 4b8ba2d94121fd292364ce309d5f850aaf3a21d2 | |
parent | 1f9ac7850d7cc992b712fa99fd3d4f92a219f9d8 (diff) | |
download | nextcloud-server-b32823a96e16c3d30beb9db87a3bbad9615ef80d.tar.gz nextcloud-server-b32823a96e16c3d30beb9db87a3bbad9615ef80d.zip |
improved trashbin test
-rwxr-xr-x | apps/files_encryption/tests/trashbin.php | 2 |
1 files changed, 1 insertions, 1 deletions
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']; } |