mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
API phpunit 9 support
This commit is contained in:
parent
081282cac1
commit
54a8b8ce8f
12
.travis.yml
12
.travis.yml
@ -14,14 +14,14 @@ matrix:
|
|||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
# Core php tests
|
# Core php tests
|
||||||
- php: 7.1
|
- php: 7.3
|
||||||
env:
|
env:
|
||||||
- DB=MYSQL
|
- DB=MYSQL
|
||||||
- PHPUNIT_TEST=1
|
- PHPUNIT_TEST=1
|
||||||
- PHPUNIT_SUITE="core"
|
- PHPUNIT_SUITE="core"
|
||||||
- PDO=1
|
- PDO=1
|
||||||
- COMPOSER_INSTALL_ARG="--prefer-lowest"
|
- COMPOSER_INSTALL_ARG="--prefer-lowest"
|
||||||
- php: 7.2
|
- php: 7.3
|
||||||
env:
|
env:
|
||||||
- DB=MYSQL
|
- DB=MYSQL
|
||||||
- PHPUNIT_TEST=1
|
- PHPUNIT_TEST=1
|
||||||
@ -43,14 +43,14 @@ matrix:
|
|||||||
- PHPUNIT_SUITE="core"
|
- PHPUNIT_SUITE="core"
|
||||||
- COMPOSER_INSTALL_ARG="--ignore-platform-reqs"
|
- COMPOSER_INSTALL_ARG="--ignore-platform-reqs"
|
||||||
# admin php tests
|
# admin php tests
|
||||||
- php: 7.1
|
- php: 7.3
|
||||||
env:
|
env:
|
||||||
- DB=MYSQL
|
- DB=MYSQL
|
||||||
- PHPUNIT_TEST=1
|
- PHPUNIT_TEST=1
|
||||||
- PHPUNIT_SUITE="admin"
|
- PHPUNIT_SUITE="admin"
|
||||||
- PDO=1
|
- PDO=1
|
||||||
- COMPOSER_INSTALL_ARG="--prefer-lowest"
|
- COMPOSER_INSTALL_ARG="--prefer-lowest"
|
||||||
- php: 7.2
|
- php: 7.3
|
||||||
env:
|
env:
|
||||||
- DB=PGSQL
|
- DB=PGSQL
|
||||||
- PHPUNIT_TEST=1
|
- PHPUNIT_TEST=1
|
||||||
@ -67,12 +67,12 @@ matrix:
|
|||||||
- PHPUNIT_SUITE="admin"
|
- PHPUNIT_SUITE="admin"
|
||||||
- COMPOSER_INSTALL_ARG="--ignore-platform-reqs"
|
- COMPOSER_INSTALL_ARG="--ignore-platform-reqs"
|
||||||
# behat tests
|
# behat tests
|
||||||
- php: 7.1
|
- php: 7.3
|
||||||
env:
|
env:
|
||||||
- DB=MYSQL
|
- DB=MYSQL
|
||||||
- BEHAT_TEST=1
|
- BEHAT_TEST=1
|
||||||
- BEHAT_SUITE="admin"
|
- BEHAT_SUITE="admin"
|
||||||
- php: 7.2
|
- php: 7.3
|
||||||
env:
|
env:
|
||||||
- DB=MYSQL
|
- DB=MYSQL
|
||||||
- BEHAT_TEST=1
|
- BEHAT_TEST=1
|
||||||
|
@ -3,15 +3,14 @@
|
|||||||
"type": "silverstripe-recipe",
|
"type": "silverstripe-recipe",
|
||||||
"description": "The SilverStripe Framework Installer",
|
"description": "The SilverStripe Framework Installer",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1 || ^8",
|
"php": "^7.3 || ^8.0",
|
||||||
"silverstripe/recipe-plugin": "^1.2",
|
"silverstripe/recipe-plugin": "^1.2",
|
||||||
"silverstripe/recipe-cms": "4.x-dev",
|
"silverstripe/recipe-cms": "4.x-dev",
|
||||||
"silverstripe-themes/simple": "~3.2.0",
|
"silverstripe-themes/simple": "~3.2.0",
|
||||||
"silverstripe/login-forms": "4.x-dev"
|
"silverstripe/login-forms": "4.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": [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
PHPUnit configuration for SilverStripe
|
PHPUnit configuration for SilverStripe
|
||||||
|
|
||||||
Requires PHPUnit 5+
|
Requires PHPUnit 9+
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
- "vendor/bin/phpunit": Runs all tests in all folders
|
- "vendor/bin/phpunit": Runs all tests in all folders
|
||||||
@ -18,6 +18,7 @@
|
|||||||
It is safe to remove this file for normal website operation.
|
It is safe to remove this file for normal website operation.
|
||||||
-->
|
-->
|
||||||
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
||||||
|
<testsuites>
|
||||||
<testsuite name="Default">
|
<testsuite name="Default">
|
||||||
<directory>app/tests</directory>
|
<directory>app/tests</directory>
|
||||||
<directory>vendor/silverstripe/cms/tests/php</directory>
|
<directory>vendor/silverstripe/cms/tests/php</directory>
|
||||||
@ -45,4 +46,5 @@
|
|||||||
<directory>vendor/silverstripe/reports/tests/</directory>
|
<directory>vendor/silverstripe/reports/tests/</directory>
|
||||||
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
Loading…
Reference in New Issue
Block a user