Skip to content

Commit

Permalink
Merge pull request #49 from creative-commoners/pulls/3/sapphire-test-…
Browse files Browse the repository at this point in the history
…nine

API phpunit 9 support
  • Loading branch information
Maxime Rainville authored Nov 1, 2021
2 parents 4d7cae7 + cb8d0a7 commit accdc69
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 accdc69

Please sign in to comment.