aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-24 21:35:18 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-24 21:35:18 +0200
commit210ae9e5f7c2e23eaf69e7a562d4cfc6dfc626a6 (patch)
tree7a93c27a6c431fc24e71e0e6a8fc79ea0d4c343f /apps
parentf164f43590091d75cbea2c3d46601124eca573d1 (diff)
downloadnextcloud-server-210ae9e5f7c2e23eaf69e7a562d4cfc6dfc626a6.tar.gz
nextcloud-server-210ae9e5f7c2e23eaf69e7a562d4cfc6dfc626a6.zip
improved trashbin test
Diffstat (limited to 'apps')
-rwxr-xr-xapps/files_encryption/tests/trashbin.php2
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'];
}