Skip to content

Commit

Permalink
API phpunit9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 19, 2021
1 parent 095e2c4 commit b7be469
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
],
"require": {
"silverstripe/admin": "^1.5",
"silverstripe/framework": "^4.5",
"silverstripe/framework": "^4.10",
"silverstripe/versioned": "^1.5",
"silverstripe/vendor-plugin": "^1.0"
},
"require-dev": {
"sminnee/phpunit": "^5.7",
"phpunit/phpunit": "^9",
"squizlabs/php_codesniffer": "^3",
"silverstripe/asset-admin": "^1.5",
"silverstripe/cms": "^4.5"
Expand Down
13 changes: 5 additions & 8 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<!--
Standard module phpunit configuration.
Requires PHPUnit ^5.7
-->
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuite name="Default">
<directory>tests/php</directory>
</testsuite>

<testsuites>
<testsuite name="Default">
<directory>tests/php</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>
Expand Down
2 changes: 1 addition & 1 deletion tests/php/AddToCampaignValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AddToCampaignValidatorTest extends SapphireTest
*/
protected $validator = null;

protected function setUp()
protected function setUp(): void
{
parent::setUp();
$this->logInWithPermission('ADMIN');
Expand Down
2 changes: 1 addition & 1 deletion tests/php/CampaignAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CampaignAdminTest extends SapphireTest

protected static $fixture_file = 'CampaignAdminTest.yml';

protected function setUp()
protected function setUp(): void
{
parent::setUp();
DBDatetime::set_mock_now('2011-09-24 11:11:00');
Expand Down

0 comments on commit b7be469

Please sign in to comment.