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
|
||||
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
|
||||
|
@ -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": [
|
||||
|
@ -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,31 +18,33 @@
|
||||
It is safe to remove this file for normal website operation.
|
||||
-->
|
||||
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
||||
<testsuite name="Default">
|
||||
<directory>app/tests</directory>
|
||||
<directory>vendor/silverstripe/cms/tests/php</directory>
|
||||
<directory>vendor/silverstripe/framework/tests/php</directory>
|
||||
</testsuite>
|
||||
<testsuites>
|
||||
<testsuite name="Default">
|
||||
<directory>app/tests</directory>
|
||||
<directory>vendor/silverstripe/cms/tests/php</directory>
|
||||
<directory>vendor/silverstripe/framework/tests/php</directory>
|
||||
</testsuite>
|
||||
|
||||
<!-- framework only -->
|
||||
<testsuite name="framework">
|
||||
<directory>vendor/silverstripe/framework/tests/php/</directory>
|
||||
</testsuite>
|
||||
<!-- framework only -->
|
||||
<testsuite name="framework">
|
||||
<directory>vendor/silverstripe/framework/tests/php/</directory>
|
||||
</testsuite>
|
||||
|
||||
<!-- other core components -->
|
||||
<testsuite name="core">
|
||||
<directory>vendor/silverstripe/assets/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/versioned/tests/php/</directory>
|
||||
</testsuite>
|
||||
<!-- other core components -->
|
||||
<testsuite name="core">
|
||||
<directory>vendor/silverstripe/assets/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/versioned/tests/php/</directory>
|
||||
</testsuite>
|
||||
|
||||
<!-- admin components -->
|
||||
<testsuite name="admin">
|
||||
<directory>vendor/silverstripe/admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/asset-admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/campaign-admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/cms/tests/</directory>
|
||||
<directory>vendor/silverstripe/graphql/tests/</directory>
|
||||
<directory>vendor/silverstripe/reports/tests/</directory>
|
||||
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
||||
</testsuite>
|
||||
<!-- admin components -->
|
||||
<testsuite name="admin">
|
||||
<directory>vendor/silverstripe/admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/asset-admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/campaign-admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/cms/tests/</directory>
|
||||
<directory>vendor/silverstripe/graphql/tests/</directory>
|
||||
<directory>vendor/silverstripe/reports/tests/</directory>
|
||||
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
|
Loading…
Reference in New Issue
Block a user