From 83e3afea572f28d06b9e393c58667b5ae8c26cbc Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 6 Sep 2024 17:47:14 +1200 Subject: [PATCH] DEP Use PHPUnit 11 --- composer.json | 2 +- tests/GridFieldOrderableRowsTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index fd48ca0..91f7b80 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "silverstripe/framework": "^6" }, "require-dev": { - "phpunit/phpunit": "^9.6", + "phpunit/phpunit": "^11.3", "squizlabs/php_codesniffer": "^3.7", "silverstripe/versioned": "^3", "silverstripe/standards": "^1", diff --git a/tests/GridFieldOrderableRowsTest.php b/tests/GridFieldOrderableRowsTest.php index 6cf438b..7ef3f1e 100644 --- a/tests/GridFieldOrderableRowsTest.php +++ b/tests/GridFieldOrderableRowsTest.php @@ -61,7 +61,7 @@ class GridFieldOrderableRowsTest extends SapphireTest ThroughBelongsVersioned::class, ]; - public function reorderItemsProvider() + public static function reorderItemsProvider() { return [ [StubParent::class . '.parent', 'MyHasMany', 'Sort'], @@ -336,7 +336,7 @@ public function testGetManipulatedData(string $dataClass, string $listClass, arr $this->assertSame($expected, $sortedList->column($col)); } - public function provideGetManipulatedData(): array + public static function provideGetManipulatedData(): array { return [ [