API phpunit 9 support

This commit is contained in:
Steve Boyd 2021-11-04 11:13:45 +13:00
parent 081282cac1
commit 54a8b8ce8f
3 changed files with 35 additions and 34 deletions

View File

@ -14,14 +14,14 @@ matrix:
fast_finish: true
include:
# Core php tests
- php: 7.1
- php: 7.3
env:
- DB=MYSQL
- PHPUNIT_TEST=1
- PHPUNIT_SUITE="core"
- PDO=1
- COMPOSER_INSTALL_ARG="--prefer-lowest"
- php: 7.2
- php: 7.3
env:
- DB=MYSQL
- PHPUNIT_TEST=1
@ -43,14 +43,14 @@ matrix:
- PHPUNIT_SUITE="core"
- COMPOSER_INSTALL_ARG="--ignore-platform-reqs"
# admin php tests
- php: 7.1
- php: 7.3
env:
- DB=MYSQL
- PHPUNIT_TEST=1
- PHPUNIT_SUITE="admin"
- PDO=1
- COMPOSER_INSTALL_ARG="--prefer-lowest"
- php: 7.2
- php: 7.3
env:
- DB=PGSQL
- PHPUNIT_TEST=1
@ -67,12 +67,12 @@ matrix:
- PHPUNIT_SUITE="admin"
- COMPOSER_INSTALL_ARG="--ignore-platform-reqs"
# behat tests
- php: 7.1
- php: 7.3
env:
- DB=MYSQL
- BEHAT_TEST=1
- BEHAT_SUITE="admin"
- php: 7.2
- php: 7.3
env:
- DB=MYSQL
- BEHAT_TEST=1

View File

@ -3,15 +3,14 @@
"type": "silverstripe-recipe",
"description": "The SilverStripe Framework Installer",
"require": {
"php": "^7.1 || ^8",
"php": "^7.3 || ^8.0",
"silverstripe/recipe-plugin": "^1.2",
"silverstripe/recipe-cms": "4.x-dev",
"silverstripe-themes/simple": "~3.2.0",
"silverstripe/login-forms": "4.x-dev"
},
"require-dev": {
"sminnee/phpunit": "^5.7",
"sminnee/phpunit-mock-objects": "^3.4.5"
"phpunit/phpunit": "^9.5"
},
"extra": {
"project-files": [

View File

@ -1,7 +1,7 @@
<!--
PHPUnit configuration for SilverStripe
Requires PHPUnit 5+
Requires PHPUnit 9+
Usage:
- "vendor/bin/phpunit": Runs all tests in all folders
@ -18,6 +18,7 @@
It is safe to remove this file for normal website operation.
-->
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="Default">
<directory>app/tests</directory>
<directory>vendor/silverstripe/cms/tests/php</directory>
@ -45,4 +46,5 @@
<directory>vendor/silverstripe/reports/tests/</directory>
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
</testsuite>
</testsuites>
</phpunit>