]> source.dussan.org Git - nextcloud-server.git/commitdiff
Cache: fix test case Updater::testRename
authorRobin Appelman <icewind@owncloud.com>
Tue, 22 Jan 2013 15:36:03 +0000 (16:36 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 22 Jan 2013 15:36:03 +0000 (16:36 +0100)
tests/lib/files/cache/updater.php

index 8bf395698ae3a5415733a15f5cdfd3edd88cb7b7..b4f373cdc2a340b2ea15e86ffece7f7b83be2b77 100644 (file)
@@ -136,7 +136,7 @@ class Updater extends \PHPUnit_Framework_TestCase {
                Filesystem::rename('foo.txt', 'bar.txt');
                $this->assertFalse($this->cache->inCache('foo.txt'));
                $this->assertTrue($this->cache->inCache('bar.txt'));
-               $cachedData = $this->cache->get('foo.txt');
+               $cachedData = $this->cache->get('bar.txt');
                $this->assertNotEquals($fooCachedData['etag'], $cachedData['etag']);
                $mtime = $cachedData['mtime'];
                $cachedData = $this->cache->get('');