summaryrefslogtreecommitdiffstats
path: root/tests/lib/Memcache/FactoryTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Memcache/FactoryTest.php')
-rw-r--r--tests/lib/Memcache/FactoryTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Memcache/FactoryTest.php b/tests/lib/Memcache/FactoryTest.php
index 971b22d69b2..cf4da7839c4 100644
--- a/tests/lib/Memcache/FactoryTest.php
+++ b/tests/lib/Memcache/FactoryTest.php
@@ -127,9 +127,10 @@ class FactoryTest extends \Test\TestCase {
/**
* @dataProvider cacheUnavailableProvider
- * @expectedException \OC\HintException
*/
public function testCacheNotAvailableException($localCache, $distributedCache) {
+ $this->expectException(\OC\HintException::class);
+
$logger = $this->getMockBuilder(ILogger::class)->getMock();
new \OC\Memcache\Factory('abc', $logger, $localCache, $distributedCache);
}