Skip to content

Commit

Permalink
Merge pull request #125 from creative-commoners/pulls/4/phpunit11
Browse files Browse the repository at this point in the history
DEP Use PHPUnit 11
  • Loading branch information
GuySartorelli authored Sep 18, 2024
2 parents f22bc93 + 04bbaa9 commit 254dc9b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/SegmentFieldModifier/IDSegmentFieldModifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function getNewFormMock()
{
$mock = $this->getMockBuilder(Form::class)
->disableOriginalConstructor()
->setMethods(['getRecord'])
->onlyMethods(['getRecord'])
->getMock();

$record = new stdClass();
Expand Down
1 change: 0 additions & 1 deletion tests/SegmentFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ protected function getNewFormMock()
{
return $this->getMockBuilder(Form::class)
->disableOriginalConstructor()
->setMethods(null)
->getMock();
}
}

0 comments on commit 254dc9b

Please sign in to comment.