From 8165bb4e47b3957b6753976822be2e152ee9908d Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 10 Sep 2024 11:11:50 +1200 Subject: [PATCH] DEP Use PHPUnit 11 --- tests/php/ElementFormControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');