mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #141 from creative-commoners/pulls/4/sapphire-test-nine
API phpunit9 support
This commit is contained in:
commit
3ab86f3d0a
@ -20,7 +20,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"silverstripe/framework": "^4.6@dev",
|
"php": "^7.3 || ^8.0",
|
||||||
|
"silverstripe/framework": "^4.10",
|
||||||
"silverstripe/admin": "^1.6@dev",
|
"silverstripe/admin": "^1.6@dev",
|
||||||
"silverstripe/versioned": "^1.6@dev",
|
"silverstripe/versioned": "^1.6@dev",
|
||||||
"silverstripe/config": "^1.0@dev",
|
"silverstripe/config": "^1.0@dev",
|
||||||
@ -28,7 +29,8 @@
|
|||||||
"silverstripe/vendor-plugin": "^1"
|
"silverstripe/vendor-plugin": "^1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"sminnee/phpunit": "^5.7",
|
"phpunit/phpunit": "^9.5",
|
||||||
|
"dms/phpunit-arraysubset-asserts": "^0.3.0",
|
||||||
"squizlabs/php_codesniffer": "^3.0"
|
"squizlabs/php_codesniffer": "^3.0"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
||||||
|
|
||||||
<testsuite name="Default">
|
<testsuites>
|
||||||
<directory>tests</directory>
|
<testsuite name="Default">
|
||||||
</testsuite>
|
<directory>tests</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
|
||||||
<filter>
|
<filter>
|
||||||
<whitelist addUncoveredFilesFromWhitelist="true">
|
<whitelist addUncoveredFilesFromWhitelist="true">
|
||||||
|
@ -5,6 +5,7 @@ use ReflectionClass;
|
|||||||
use SilverStripe\Control\Controller;
|
use SilverStripe\Control\Controller;
|
||||||
use SilverStripe\Control\HTTPRequest;
|
use SilverStripe\Control\HTTPRequest;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts;
|
||||||
use SilverStripe\Reports\Report;
|
use SilverStripe\Reports\Report;
|
||||||
use SilverStripe\Reports\ReportAdmin;
|
use SilverStripe\Reports\ReportAdmin;
|
||||||
use SilverStripe\Reports\Tests\ReportAdminTest\FakeReport;
|
use SilverStripe\Reports\Tests\ReportAdminTest\FakeReport;
|
||||||
@ -12,6 +13,8 @@ use SilverStripe\Reports\Tests\ReportAdminTest\FakeReport2;
|
|||||||
|
|
||||||
class ReportAdminTest extends SapphireTest
|
class ReportAdminTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
use ArraySubsetAsserts;
|
||||||
|
|
||||||
public function testBreadcrumbsAreGenerated()
|
public function testBreadcrumbsAreGenerated()
|
||||||
{
|
{
|
||||||
$noExtraCrumbs = FakeReport::create();
|
$noExtraCrumbs = FakeReport::create();
|
||||||
|
Loading…
Reference in New Issue
Block a user