summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-03 09:42:25 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-04 09:22:21 +0000
commited4dc4db077793c9897aaa676a87a8906225c38f (patch)
tree3947c24a086c83e36dbb41b809df4032ed8d8443 /apps/files_external/tests
parentd6b9b37ddb8c5442895f1c9d6e45a8d0a4422747 (diff)
downloadnextcloud-server-ed4dc4db077793c9897aaa676a87a8906225c38f.tar.gz
nextcloud-server-ed4dc4db077793c9897aaa676a87a8906225c38f.zip
Fix slash normalization error in AmazonS3Migration unit test
Since aa821ecc00f11b6382f6e033db18445d9e51d6b9 leading and trailing slashes are trimmed in the file cache paths
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/amazons3migration.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_external/tests/amazons3migration.php b/apps/files_external/tests/amazons3migration.php
index 145213f5293..8c3ffbe521f 100644
--- a/apps/files_external/tests/amazons3migration.php
+++ b/apps/files_external/tests/amazons3migration.php
@@ -64,7 +64,7 @@ class AmazonS3Migration extends \Test\TestCase {
$oldCache = new \OC\Files\Cache\Cache($this->oldId);
// add file to old cache
- $fileId = $oldCache->put('/', array('size' => 0, 'mtime' => time(), 'mimetype' => 'httpd/directory'));
+ $fileId = $oldCache->put('foobar', array('size' => 0, 'mtime' => time(), 'mimetype' => 'httpd/directory'));
try {
$this->instance = new \OC\Files\Storage\AmazonS3($this->params);
@@ -80,7 +80,7 @@ class AmazonS3Migration extends \Test\TestCase {
list($storageId, $path) = \OC\Files\Cache\Cache::getById($fileId);
$this->assertSame($this->newId, $storageId);
- $this->assertSame('/', $path);
+ $this->assertSame('foobar', $path);
}
public function testUpdateLegacyAndNewId () {
@@ -127,4 +127,4 @@ class AmazonS3Migration extends \Test\TestCase {
);
$stmt->execute(array($id));
}
-} \ No newline at end of file
+}