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 815b758 commit c9ab943
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"silverstripe/cms": "^6"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^11.3",
"squizlabs/php_codesniffer": "^3",
"symbiote/silverstripe-queuedjobs": "^6",
"silverstripe/standards": "^1",
Expand Down
2 changes: 1 addition & 1 deletion tests/php/ExternalLinksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function testArchivedPagesAreHiddenFromReport()
$this->assertEquals(3, BrokenExternalLinksReport::create()->sourceRecords()->count());
}

public function provideGetJobStatus(): array
public static function provideGetJobStatus(): array
{
return [
'ADMIN - valid permission' => ['ADMIN', 200],
Expand Down
4 changes: 2 additions & 2 deletions tests/php/Model/BrokenExternalLinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testGetHTTPCodeDescription(int $httpCode, string $expected)
$this->assertSame($expected, $link->getHTTPCodeDescription());
}

public function httpCodeProvider(): array
public static function httpCodeProvider(): array
{
return [
[200, '200 (OK)'],
Expand All @@ -28,7 +28,7 @@ public function httpCodeProvider(): array
];
}

public function permissionProvider(): array
public static function permissionProvider(): array
{
return [
['admin', 'ADMIN'],
Expand Down

0 comments on commit c9ab943

Please sign in to comment.