From 544c5bf33c6e619478ba4352e10ef4f748734d97 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 13 Oct 2021 13:45:13 +1300 Subject: [PATCH] API phpunit 9 support --- composer.json | 2 +- tests/SitewideContentReportTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e9d6d75..d7221b5 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "silverstripe/cms": "^4.0" }, "require-dev": { - "sminnee/phpunit": "^5.7", + "phpunit/phpunit": "^9", "squizlabs/php_codesniffer": "^3.0" }, "authors": [ diff --git a/tests/SitewideContentReportTest.php b/tests/SitewideContentReportTest.php index cc5f992..5547feb 100644 --- a/tests/SitewideContentReportTest.php +++ b/tests/SitewideContentReportTest.php @@ -23,7 +23,7 @@ class SitewideContentReportTest extends SapphireTest */ protected static $fixture_file = 'SitewideContentReportTest.yml'; - public function setUp() + protected function setUp(): void { // Stop default page creation from occuring - just use fixtures Config::modify()->set(SiteTree::class, 'create_default_pages', false);