Skip to content

Commit

Permalink
Merge pull request #76 from creative-commoners/pulls/2/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 83a736b + 99ec82a commit 4ba94b6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
}
],
"require": {
"silverstripe/framework": "^4",
"php": "^7.3 || ^8.0",
"silverstripe/framework": "^4.10",
"silverstripe/admin": "^1.0.2"
},
"require-dev": {
"sminnee/phpunit": "^5.7",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.0"
},
"suggest": {
Expand Down
8 changes: 5 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<phpunit bootstrap="vendor/silverstripe/framework/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">
Expand Down
2 changes: 1 addition & 1 deletion tests/TaxonomyTermTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TaxonomyTermTest extends SapphireTest
{
protected static $fixture_file = 'TaxonomyTermTest.yml';

protected function setUp()
protected function setUp(): void
{
// Type inheritance needs to be disabled while we generate our objects from our fixtures. Otherwise, all of
// the Types will be written to our child Terms, and this will completely invalidate some of our test
Expand Down

0 comments on commit 4ba94b6

Please sign in to comment.