]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix getMock Template
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:26:21 +0000 (20:26 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:42:38 +0000 (20:42 +0200)
tests/lib/Template/ResourceLocatorTest.php

index 1918b927c94de9535eb926ede3d7221dcafa0f6c..17326f6c691f06d76e6c8067c6d8c98d06bfbebb 100644 (file)
@@ -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);
        }
 
        /**