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 bf843a9 commit 2be1114
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"silverstripe/admin": "^3"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^11.3",
"silverstripe/frameworktest": "^2",
"squizlabs/php_codesniffer": "^3.7",
"silverstripe/cms": "^6",
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Controller/AssetAdminOpenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function tearDown(): void
parent::tearDown();
}

public function provideApiRead(): array
public static function provideApiRead(): array
{
return [
'Valid' => [
Expand Down
14 changes: 7 additions & 7 deletions tests/php/Controller/AssetAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public function testGetClientConfigExtensions()
});
}

public function provideApiReadDescendantCounts(): array
public static function provideApiReadDescendantCounts(): array
{
return [
'Valid' => [
Expand Down Expand Up @@ -556,7 +556,7 @@ public function testApiReadDescendantCounts(
}
}

public function provideApiReadLiveOwnerCounts(): array
public static function provideApiReadLiveOwnerCounts(): array
{
return [
'Valid' => [
Expand Down Expand Up @@ -651,7 +651,7 @@ public function testApiReadLiveOwnerCounts(
}
}

public function provideApiReadUsage(): array
public static function provideApiReadUsage(): array
{
return [
'Valid' => [
Expand Down Expand Up @@ -708,7 +708,7 @@ public function testApiReadUsage(
}
}

public function provideApiDelete(): array
public static function provideApiDelete(): array
{
return [
'Valid' => [
Expand Down Expand Up @@ -797,7 +797,7 @@ public function testApiDelete(
}
}

public function provideApiMove(): array
public static function provideApiMove(): array
{
return [
'Valid' => [
Expand Down Expand Up @@ -910,7 +910,7 @@ public function testApiMove(
}
}

public function provideApiPublish(): array
public static function provideApiPublish(): array
{
return [
'Valid' => [
Expand Down Expand Up @@ -1013,7 +1013,7 @@ public function testApiPublish(
}
}

public function provideApiUnpublish(): array
public static function provideApiUnpublish(): array
{
return [
'Valid' => [
Expand Down
4 changes: 2 additions & 2 deletions tests/php/Forms/RemoteFileFormFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function setUp(): void
]);
}

public function providerTestAcceptedURLs()
public static function providerTestAcceptedURLs()
{
return [
[
Expand Down Expand Up @@ -93,7 +93,7 @@ public function testAcceptedURLs($config, $acceptedURL)
$this->assertInstanceOf(Form::class, $fields);
}

public function providerTestRejectedURLs()
public static function providerTestRejectedURLs()
{
return [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Forms/UploadFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function tearDown(): void
parent::tearDown();
}

public function provideGetUploadMaxFileSize(): array
public static function provideGetUploadMaxFileSize(): array
{
return [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Model/ThumbnailGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function testGenerateLink()
$this->assertEquals('/assets/906835357d/TestImage__FitMaxWzEwMCwyMDBd.png', $thumbnail);
}

public function provideAnimatedThumbnail(): array
public static function provideAnimatedThumbnail(): array
{
return [
[true],
Expand Down

0 comments on commit 2be1114

Please sign in to comment.