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 19, 2021
1 parent 4d7cae7 commit 6af0ea0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"silverstripe/cms": "^4.0"
},
"require-dev": {
"sminnee/phpunit": "^5.7",
"phpunit/phpunit": "^9",
"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 6af0ea0

Please sign in to comment.