Skip to content

Commit

Permalink
API phpunit 9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 27, 2021
1 parent 4d7cae7 commit cb8d0a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
8 changes: 5 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<phpunit bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" colors="true">
<testsuite name="Default">
<directory>tests/</directory>
</testsuite>
<testsuites>
<testsuite name="Default">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>
Expand Down
2 changes: 1 addition & 1 deletion tests/SitewideContentReportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb8d0a7

Please sign in to comment.