summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-12 21:02:54 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-13 09:09:52 +0200
commit4b8d474ec556dfa091b4d6fcc637eded7d296e8b (patch)
treec9e210e73e14a8d54399372e26ca9e5b0515b1fc /tests
parent3782edf49cf2c653090b9d38bf8c30c7540104a5 (diff)
downloadnextcloud-server-4b8d474ec556dfa091b4d6fcc637eded7d296e8b.tar.gz
nextcloud-server-4b8d474ec556dfa091b4d6fcc637eded7d296e8b.zip
Fix getMock Cache
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Cache/CacheTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/Files/Cache/CacheTest.php b/tests/lib/Files/Cache/CacheTest.php
index bfc3c1be7b8..4a2581fbc54 100644
--- a/tests/lib/Files/Cache/CacheTest.php
+++ b/tests/lib/Files/Cache/CacheTest.php
@@ -10,6 +10,7 @@ namespace Test\Files\Cache;
use Doctrine\DBAL\Platforms\MySqlPlatform;
+use OC\Files\Cache\Cache;
class LongId extends \OC\Files\Storage\Temporary {
public function getId() {
@@ -500,7 +501,10 @@ class CacheTest extends \Test\TestCase {
/**
* @var \OC\Files\Cache\Cache | \PHPUnit_Framework_MockObject_MockObject $cacheMock
*/
- $cacheMock = $this->getMock('\OC\Files\Cache\Cache', array('normalize'), array($this->storage), '', true);
+ $cacheMock = $this->getMockBuilder(Cache::class)
+ ->setMethods(['normalize'])
+ ->setConstructorArgs([$this->storage])
+ ->getMock();
$cacheMock->expects($this->any())
->method('normalize')