mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #6812 from owncloud/tests-fixcachesyntaxforoldphp
Fix array access syntax for older PHP
This commit is contained in:
commit
db353e14cc
1 changed files with 3 additions and 2 deletions
5
tests/lib/files/cache/cache.php
vendored
5
tests/lib/files/cache/cache.php
vendored
|
|
@ -169,8 +169,9 @@ class Cache extends \PHPUnit_Framework_TestCase {
|
|||
|
||||
$this->assertEquals(916, $this->cache->calculateFolderSize($file1));
|
||||
// direct cache entry retrieval returns the original values
|
||||
$this->assertEquals(1025, $this->cache->get($file1)['size']);
|
||||
$this->assertEquals(916, $this->cache->get($file1)['unencrypted_size']);
|
||||
$entry = $this->cache->get($file1);
|
||||
$this->assertEquals(1025, $entry['size']);
|
||||
$this->assertEquals(916, $entry['unencrypted_size']);
|
||||
|
||||
$this->cache->remove($file2);
|
||||
$this->cache->remove($file3);
|
||||
|
|
|
|||
Loading…
Reference in a new issue