diff --git a/composer.json b/composer.json index dc6d245..ac6f236 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "silverstripe/cms": "^6" }, "require-dev": { - "phpunit/phpunit": "^9.6", + "phpunit/phpunit": "^11.3", "squizlabs/php_codesniffer": "^3", "silverstripe/reports": "^6", "silverstripe/siteconfig": "^6", diff --git a/tests/SegmentFieldModifier/IDSegmentFieldModifierTest.php b/tests/SegmentFieldModifier/IDSegmentFieldModifierTest.php index 55e58e8..8dd3f7e 100644 --- a/tests/SegmentFieldModifier/IDSegmentFieldModifierTest.php +++ b/tests/SegmentFieldModifier/IDSegmentFieldModifierTest.php @@ -28,7 +28,7 @@ protected function getNewFormMock() { $mock = $this->getMockBuilder(Form::class) ->disableOriginalConstructor() - ->setMethods(['getRecord']) + ->onlyMethods(['getRecord']) ->getMock(); $record = new stdClass(); diff --git a/tests/SegmentFieldTest.php b/tests/SegmentFieldTest.php index 4ffa52d..43c76bb 100644 --- a/tests/SegmentFieldTest.php +++ b/tests/SegmentFieldTest.php @@ -63,7 +63,6 @@ protected function getNewFormMock() { return $this->getMockBuilder(Form::class) ->disableOriginalConstructor() - ->setMethods(null) ->getMock(); } }