diff --git a/tests/lib/Template/ResourceLocatorTest.php b/tests/lib/Template/ResourceLocatorTest.php index 25a0c2479d9..c4bda7af93a 100644 --- a/tests/lib/Template/ResourceLocatorTest.php +++ b/tests/lib/Template/ResourceLocatorTest.php @@ -32,9 +32,13 @@ class ResourceLocatorTest extends \Test\TestCase { ->method('getSystemValueString') ->with('theme', '') ->willReturn($theme); - return $this->getMockForAbstractClass(ResourceLocator::class, - [$this->logger, $this->config], - '', true, true, true, []); + return $this->getMockBuilder(ResourceLocator::class) + ->onlyMethods(['doFind', 'doFindTheme']) + ->setConstructorArgs( + [$this->logger, $this->config], + '', true, true, true, [] + ) + ->getMock(); } public function testFind(): void {