From b32823a96e16c3d30beb9db87a3bbad9615ef80d Mon Sep 17 00:00:00 2001
From: Florin Peter <github@florin-peter.de>
Date: Fri, 24 May 2013 21:35:18 +0200
Subject: [PATCH] improved trashbin test

---
 apps/files_encryption/tests/trashbin.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_encryption/tests/trashbin.php b/apps/files_encryption/tests/trashbin.php
index b62041a6d3..c317c024ea 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'];
 			}
-- 
GitLab