API phpunit 9 support

This commit is contained in:
Steve Boyd 2021-11-05 09:47:39 +13:00
parent 1bba7a2976
commit ef2201f1fe
2 changed files with 17 additions and 16 deletions

View File

@ -5,7 +5,7 @@
"homepage": "http://silverstripe.org", "homepage": "http://silverstripe.org",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"require": { "require": {
"php": "^7.1 || ^8", "php": "^7.3 || ^8.0",
"silverstripe/recipe-plugin": "^1.5", "silverstripe/recipe-plugin": "^1.5",
"silverstripe/recipe-core": "4.x-dev", "silverstripe/recipe-core": "4.x-dev",
"silverstripe/admin": "1.x-dev", "silverstripe/admin": "1.x-dev",
@ -21,8 +21,7 @@
"silverstripe/session-manager": "1.x-dev" "silverstripe/session-manager": "1.x-dev"
}, },
"require-dev": { "require-dev": {
"sminnee/phpunit": "^5.7", "phpunit/phpunit": "^9.5"
"sminnee/phpunit-mock-objects": "^3.4.5"
}, },
"extra": { "extra": {
"project-files": [ "project-files": [

View File

@ -1,4 +1,5 @@
<phpunit bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" colors="true"> <phpunit bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="recipe-cms"> <testsuite name="recipe-cms">
<directory>vendor/silverstripe/admin/tests</directory> <directory>vendor/silverstripe/admin/tests</directory>
<directory>vendor/silverstripe/asset-admin/tests</directory> <directory>vendor/silverstripe/asset-admin/tests</directory>
@ -12,4 +13,5 @@
<directory>vendor/silverstripe/versioned/tests</directory> <directory>vendor/silverstripe/versioned/tests</directory>
<directory>vendor/silverstripe/versioned-admin/tests</directory> <directory>vendor/silverstripe/versioned-admin/tests</directory>
</testsuite> </testsuite>
</testsuites>
</phpunit> </phpunit>