From f1e82b10e641fa6dc42ea6a87eab95071cc6ed9e Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 21 Oct 2025 00:25:12 +0200 Subject: [PATCH] refactor(tests): `getMockForAbstractClass` is deprecated Signed-off-by: Ferdinand Thiessen --- tests/lib/Template/ResourceLocatorTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 {