summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-02-27 13:51:14 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-02-27 13:51:14 +0100
commitba4b593f845d05586177fa63b087bfab42dfb4bc (patch)
treefee42a8109a971688a46fa3cb04de0e8689b9261 /apps/files_encryption
parentf62b8a7896ad0f1a0b46dc4422861f22bf4d8852 (diff)
parent2ba6cd4e2b779d43424fd2a037319923749666d2 (diff)
downloadnextcloud-server-ba4b593f845d05586177fa63b087bfab42dfb4bc.tar.gz
nextcloud-server-ba4b593f845d05586177fa63b087bfab42dfb4bc.zip
Merge pull request #7446 from owncloud/etag_assert_fixes
use assertSame and assertNotSame for etag checks
Diffstat (limited to 'apps/files_encryption')
-rwxr-xr-xapps/files_encryption/tests/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/tests/util.php b/apps/files_encryption/tests/util.php
index f70e30c4d73..203ba55dbfd 100755
--- a/apps/files_encryption/tests/util.php
+++ b/apps/files_encryption/tests/util.php
@@ -344,7 +344,7 @@ class Test_Encryption_Util extends \PHPUnit_Framework_TestCase {
// check if mtime and etags unchanged
$this->assertEquals($fileInfoEncrypted['mtime'], $fileInfoUnencrypted['mtime']);
- $this->assertEquals($fileInfoEncrypted['etag'], $fileInfoUnencrypted['etag']);
+ $this->assertSame($fileInfoEncrypted['etag'], $fileInfoUnencrypted['etag']);
$this->view->unlink($this->userId . '/files/' . $filename);
}
@@ -373,7 +373,7 @@ class Test_Encryption_Util extends \PHPUnit_Framework_TestCase {
// check if mtime and etags unchanged
$this->assertEquals($fileInfoEncrypted['mtime'], $fileInfoUnencrypted['mtime']);
- $this->assertEquals($fileInfoEncrypted['etag'], $fileInfoUnencrypted['etag']);
+ $this->assertSame($fileInfoEncrypted['etag'], $fileInfoUnencrypted['etag']);
// file should no longer be encrypted
$this->assertEquals(0, $fileInfoUnencrypted['encrypted']);