refactor(tests): `getMockForAbstractClass` is deprecated

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/55870/head
Ferdinand Thiessen 2025-10-21 00:25:12 +07:00
parent b2e767d98c
commit f1e82b10e6
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
1 changed files with 7 additions and 3 deletions

@ -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 {