mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
refactor(tests): getMockForAbstractClass is deprecated
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
b2e767d98c
commit
f1e82b10e6
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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue