From d8a4769cd633d475e172b23636bcf93ecbdbb864 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 7 Sep 2016 20:26:21 +0200 Subject: [PATCH] Fix getMock Template --- tests/lib/Template/ResourceLocatorTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lib/Template/ResourceLocatorTest.php b/tests/lib/Template/ResourceLocatorTest.php index 1918b927c94..17326f6c691 100644 --- a/tests/lib/Template/ResourceLocatorTest.php +++ b/tests/lib/Template/ResourceLocatorTest.php @@ -9,6 +9,7 @@ namespace Test\Template; use OC\Template\ResourceNotFoundException; +use OCP\ILogger; class ResourceLocatorTest extends \Test\TestCase { /** @var \PHPUnit_Framework_MockObject_MockObject */ @@ -16,7 +17,7 @@ class ResourceLocatorTest extends \Test\TestCase { protected function setUp() { parent::setUp(); - $this->logger = $this->getMock('OCP\ILogger'); + $this->logger = $this->createMock(ILogger::class); } /** -- 2.39.5