mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
refactor(tests): special name method is deprecated in PHPUnit
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
77d1d3b953
commit
be6b39f280
1 changed files with 3 additions and 3 deletions
|
|
@ -85,7 +85,7 @@ class TestMiddleware extends Middleware {
|
|||
}
|
||||
|
||||
class TestController extends Controller {
|
||||
public function method(): void {
|
||||
public function controllerMethod(): void {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -115,10 +115,10 @@ class MiddlewareDispatcherTest extends \Test\TestCase {
|
|||
|
||||
private function getControllerMock() {
|
||||
return $this->getMockBuilder(TestController::class)
|
||||
->onlyMethods(['method'])
|
||||
->onlyMethods(['controllerMethod'])
|
||||
->setConstructorArgs(['app',
|
||||
new Request(
|
||||
['method' => 'GET'],
|
||||
['controllerMethod' => 'GET'],
|
||||
$this->createMock(IRequestId::class),
|
||||
$this->createMock(IConfig::class)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue