diff --git a/tests/php/ElementFormControllerTest.php b/tests/php/ElementFormControllerTest.php index 6ec5e4e..8a50fdf 100644 --- a/tests/php/ElementFormControllerTest.php +++ b/tests/php/ElementFormControllerTest.php @@ -63,7 +63,7 @@ public function testElementFormSubmission() public function testUserFormControllerInitIsCalled() { $userFormControllerMock = $this->getMockBuilder(UserDefinedFormController::class) - ->setMethods(['doInit']) + ->onlyMethods(['doInit']) ->getMock(); $userFormControllerMock->expects($this->once())->method('doInit');