diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-02-10 12:27:35 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-02-10 12:27:35 +0100 |
commit | 3e70d563a6774567ec77e9d9adf6b9ccb1e9619d (patch) | |
tree | beab1e4c042cbf3ef87c63b8c4a0db43df0ba46e /tests/lib/files/cache/watcher.php | |
parent | 9c1196d73e0dc57f1f20a57e459ce053264172b8 (diff) | |
download | nextcloud-server-3e70d563a6774567ec77e9d9adf6b9ccb1e9619d.tar.gz nextcloud-server-3e70d563a6774567ec77e9d9adf6b9ccb1e9619d.zip |
Cache: bookkeeping of storage_mtime
Diffstat (limited to 'tests/lib/files/cache/watcher.php')
-rw-r--r-- | tests/lib/files/cache/watcher.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/files/cache/watcher.php b/tests/lib/files/cache/watcher.php index e8a1689cab0..1ea0c2eb47a 100644 --- a/tests/lib/files/cache/watcher.php +++ b/tests/lib/files/cache/watcher.php @@ -35,7 +35,7 @@ class Watcher extends \PHPUnit_Framework_TestCase { $updater = $storage->getWatcher(); //set the mtime to the past so it can detect an mtime change - $cache->put('', array('mtime' => 10)); + $cache->put('', array('storage_mtime' => 10)); $this->assertTrue($cache->inCache('folder/bar.txt')); $this->assertTrue($cache->inCache('folder/bar2.txt')); @@ -47,14 +47,14 @@ class Watcher extends \PHPUnit_Framework_TestCase { $cachedData = $cache->get('bar.test'); $this->assertEquals(3, $cachedData['size']); - $cache->put('bar.test', array('mtime' => 10)); + $cache->put('bar.test', array('storage_mtime' => 10)); $storage->file_put_contents('bar.test', 'test data'); $updater->checkUpdate('bar.test'); $cachedData = $cache->get('bar.test'); $this->assertEquals(9, $cachedData['size']); - $cache->put('folder', array('mtime' => 10)); + $cache->put('folder', array('storage_mtime' => 10)); $storage->unlink('folder/bar2.txt'); $updater->checkUpdate('folder'); @@ -69,7 +69,7 @@ class Watcher extends \PHPUnit_Framework_TestCase { $updater = $storage->getWatcher(); //set the mtime to the past so it can detect an mtime change - $cache->put('', array('mtime' => 10)); + $cache->put('', array('storage_mtime' => 10)); $storage->unlink('foo.txt'); $storage->rename('folder', 'foo.txt'); @@ -86,7 +86,7 @@ class Watcher extends \PHPUnit_Framework_TestCase { $updater = $storage->getWatcher(); //set the mtime to the past so it can detect an mtime change - $cache->put('foo.txt', array('mtime' => 10)); + $cache->put('foo.txt', array('storage_mtime' => 10)); $storage->unlink('foo.txt'); $storage->rename('folder', 'foo.txt'); |