mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6950 from open-sausages/revert-6941-pulls/phpunit-pretty-print
Revert 6941 pulls/phpunit pretty print
This commit is contained in:
commit
93e92e49c5
@ -46,7 +46,6 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^5.7",
|
"phpunit/phpunit": "^5.7",
|
||||||
"scriptfusion/phpunit-immediate-exception-printer": "^1",
|
|
||||||
"silverstripe/versioned": "^1.0@dev",
|
"silverstripe/versioned": "^1.0@dev",
|
||||||
"silverstripe/behat-extension": "^3",
|
"silverstripe/behat-extension": "^3",
|
||||||
"silverstripe/serve": "dev-master",
|
"silverstripe/serve": "dev-master",
|
||||||
|
@ -3,9 +3,7 @@
|
|||||||
Standard module phpunit configuration.
|
Standard module phpunit configuration.
|
||||||
Requires PHPUnit ^5.7
|
Requires PHPUnit ^5.7
|
||||||
-->
|
-->
|
||||||
<phpunit printerClass="ScriptFUSION\PHPUnitImmediateExceptionPrinter\ImmediateExceptionPrinter"
|
<phpunit bootstrap="tests/bootstrap.php" colors="true">
|
||||||
bootstrap="tests/bootstrap.php"
|
|
||||||
colors="true">
|
|
||||||
<testsuite name="Default">
|
<testsuite name="Default">
|
||||||
<directory>tests/php</directory>
|
<directory>tests/php</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
|
@ -197,7 +197,10 @@ class CheckboxFieldTest extends SapphireTest
|
|||||||
$field = new CheckboxField('RequiredField', 'myRequiredField');
|
$field = new CheckboxField('RequiredField', 'myRequiredField');
|
||||||
|
|
||||||
$form = new Form(
|
$form = new Form(
|
||||||
Controller::curr(), "form", new FieldList($field), new FieldList(),
|
Controller::curr(),
|
||||||
|
"form",
|
||||||
|
new FieldList($field),
|
||||||
|
new FieldList(),
|
||||||
new RequiredFields(["RequiredField"])
|
new RequiredFields(["RequiredField"])
|
||||||
);
|
);
|
||||||
$this->assertTrue($field->Required());
|
$this->assertTrue($field->Required());
|
||||||
|
@ -379,7 +379,10 @@ class CheckboxSetFieldTest extends SapphireTest
|
|||||||
$field = new CheckboxSetField('RequiredField', 'myRequiredField');
|
$field = new CheckboxSetField('RequiredField', 'myRequiredField');
|
||||||
|
|
||||||
$form = new Form(
|
$form = new Form(
|
||||||
Controller::curr(), "form", new FieldList($field), new FieldList(),
|
Controller::curr(),
|
||||||
|
"form",
|
||||||
|
new FieldList($field),
|
||||||
|
new FieldList(),
|
||||||
new RequiredFields(["RequiredField"])
|
new RequiredFields(["RequiredField"])
|
||||||
);
|
);
|
||||||
$this->assertTrue($field->Required());
|
$this->assertTrue($field->Required());
|
||||||
|
@ -508,7 +508,10 @@ class DropdownFieldTest extends SapphireTest
|
|||||||
$field = new \SilverStripe\Forms\DropdownField("RequiredField", "dropdown", ["item 1", "item 2"]);
|
$field = new \SilverStripe\Forms\DropdownField("RequiredField", "dropdown", ["item 1", "item 2"]);
|
||||||
|
|
||||||
$form = new Form(
|
$form = new Form(
|
||||||
Controller::curr(), "form", new FieldList($field), new FieldList(),
|
Controller::curr(),
|
||||||
|
"form",
|
||||||
|
new FieldList($field),
|
||||||
|
new FieldList(),
|
||||||
new RequiredFields(["RequiredField"])
|
new RequiredFields(["RequiredField"])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -110,7 +110,10 @@ class OptionsetFieldTest extends SapphireTest
|
|||||||
$field = new OptionsetField('RequiredField', 'myRequiredField');
|
$field = new OptionsetField('RequiredField', 'myRequiredField');
|
||||||
|
|
||||||
$form = new Form(
|
$form = new Form(
|
||||||
Controller::curr(), "form", new FieldList($field), new FieldList(),
|
Controller::curr(),
|
||||||
|
"form",
|
||||||
|
new FieldList($field),
|
||||||
|
new FieldList(),
|
||||||
new RequiredFields(["RequiredField"])
|
new RequiredFields(["RequiredField"])
|
||||||
);
|
);
|
||||||
$this->assertTrue($field->Required());
|
$this->assertTrue($field->Required());
|
||||||
|
Loading…
Reference in New Issue
Block a user