mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
Merge pull request #80 from creative-commoners/pulls/3/sapphire-test-nine
API phpunit 9 support
This commit is contained in:
commit
04eb8df284
@ -17,10 +17,11 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"silverstripe/framework": "^4.0"
|
||||
"php": "^7.3 || ^8.0",
|
||||
"silverstripe/framework": "^4.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"sminnee/phpunit": "^5.7",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"silverstripe/versioned": "^1.0",
|
||||
"squizlabs/php_codesniffer": "^3.0"
|
||||
},
|
||||
|
@ -1,7 +1,9 @@
|
||||
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
||||
<testsuite name="Default">
|
||||
<directory>tests</directory>
|
||||
</testsuite>
|
||||
<testsuites>
|
||||
<testsuite name="Default">
|
||||
<directory>tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<filter>
|
||||
<whitelist addUncoveredFilesFromWhitelist="true">
|
||||
|
@ -17,7 +17,7 @@ class EditableSpamProtectionFieldTest extends SapphireTest
|
||||
{
|
||||
protected $usesDatabase = true;
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
@ -115,7 +115,7 @@ class EditableSpamProtectionFieldTest extends SapphireTest
|
||||
{
|
||||
$field = new EditableSpamProtectionField;
|
||||
|
||||
$this->assertContains('/images/editablespamprotectionfield.png', $field->getIcon());
|
||||
$this->assertStringContainsString('/images/editablespamprotectionfield.png', $field->getIcon());
|
||||
}
|
||||
|
||||
protected function getFormMock()
|
||||
|
@ -25,7 +25,7 @@ class FormSpamProtectionExtensionTest extends SapphireTest
|
||||
*/
|
||||
protected $form = null;
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user