Skip to content

Commit e48f82c

Browse files
committed
DEP Use PHPUnit 11
1 parent 45cb904 commit e48f82c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"silverstripe/vendor-plugin": "^2"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^9.6",
30+
"phpunit/phpunit": "^11.3",
3131
"squizlabs/php_codesniffer": "^3.7",
3232
"silverstripe/cms": "^6",
3333
"silverstripe/frameworktest": "^2",

tests/Controllers/HistoryViewerControllerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public function testVersionFormReturnsVersionForm()
220220
$this->assertSame('mocked', $result);
221221
}
222222

223-
public function provideApiRead(): array
223+
public static function provideApiRead(): array
224224
{
225225
return [
226226
'Valid' => [
@@ -404,7 +404,7 @@ public function testApiRead(
404404
}
405405
}
406406

407-
public function provideApiRevert(): array
407+
public static function provideApiRevert(): array
408408
{
409409
return [
410410
'Valid' => [

tests/Extensions/FileArchiveExtensionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testIsArchiveFieldEnabled(
2323
$this->assertSame($expected, $actual);
2424
}
2525

26-
public function provideIsArchiveFieldEnabled(): array
26+
public static function provideIsArchiveFieldEnabled(): array
2727
{
2828
return [
2929
[

tests/Forms/DiffFieldTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testEscaping(
6262
$this->assertSame($expected, $diffField->Value(), $message);
6363
}
6464

65-
public function provideEscaping()
65+
public static function provideEscaping()
6666
{
6767
return [
6868
[

0 commit comments

Comments
 (0)