diff --git a/composer.json b/composer.json index e9d6d75..97fd437 100644 --- a/composer.json +++ b/composer.json @@ -8,10 +8,11 @@ "reports" ], "require": { + "php": "^7.3 || ^8.0", "silverstripe/cms": "^4.0" }, "require-dev": { - "sminnee/phpunit": "^5.7", + "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "^3.0" }, "authors": [ diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b543ea6..ab41986 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,7 +1,9 @@ - - tests/ - + + + tests/ + + src/ 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);