Skip to content

Commit

Permalink
DEP Use PHPUnit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 6, 2024
1 parent ab17c09 commit 13df732
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"silverstripe/vendor-plugin": "^2"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^11.3",
"squizlabs/php_codesniffer": "^3.7",
"silverstripe/standards": "^1",
"phpstan/extension-installer": "^1.3"
Expand Down
4 changes: 2 additions & 2 deletions tests/php/Model/RedirectorPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function testGoodRedirectors()
);
}

public function provideEmptyRedirectors()
public static function provideEmptyRedirectors()
{
return [
'use 200' => [
Expand Down Expand Up @@ -181,7 +181,7 @@ public function testFileRedirector()
$this->assertStringContainsString("FileTest.txt", $page->Link());
}

public function provideUnpublishedTarget()
public static function provideUnpublishedTarget()
{
return [
'use 200 with sitetree' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Model/SiteTreePermissionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ public function testDuplicatePageWithGroupPermissions(string $userName, string $
$this->assertSame($dupe->{$method}($user), $expected);
}

public function groupWithPermissions(): array
public static function groupWithPermissions(): array
{
return [
'Subadmin can view page duplicate.' => [
Expand Down
6 changes: 3 additions & 3 deletions tests/php/Model/SiteTreeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class SiteTreeTest extends SapphireTest
NotPageObject::class,
];

public function reservedSegmentsProvider()
public static function reservedSegmentsProvider()
{
return [
// segments reserved by rules
Expand Down Expand Up @@ -1287,7 +1287,7 @@ public function testAllowedChildren($className, $expected, $assertionMessage)
/**
* @return array
*/
public function allowedChildrenProvider()
public static function allowedChildrenProvider()
{
return [
[
Expand Down Expand Up @@ -2103,7 +2103,7 @@ public function testSanitiseExtraMeta(string $extraMeta, string $expected, strin
$this->assertSame($expected, $siteTree->ExtraMeta, $message);
}

public function provideSanitiseExtraMeta(): array
public static function provideSanitiseExtraMeta(): array
{
return [
[
Expand Down

0 comments on commit 13df732

Please sign in to comment.