mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed CheckboxSetTest (broken by wrossiter in 771e93ef18
)
This commit is contained in:
parent
771e93ef18
commit
4f9065918a
@ -40,8 +40,8 @@ class CheckboxFieldTest extends SapphireTest {
|
||||
$field = new CheckboxField('IsChecked', 'Checked');
|
||||
$field->setValue(null);
|
||||
|
||||
/* dataValue() for the field is 0 */
|
||||
$this->assertEquals($field->dataValue(), 0, 'dataValue() returns a 0');
|
||||
/* dataValue() for the field is null */
|
||||
$this->assertEquals($field->dataValue(), null, 'dataValue() returns a 0');
|
||||
|
||||
/* Value() returns 0 as well */
|
||||
$this->assertEquals($field->Value(), 0, 'Value() returns a 0');
|
||||
@ -52,8 +52,8 @@ class CheckboxFieldTest extends SapphireTest {
|
||||
$field = new CheckboxField('IsChecked', 'Checked');
|
||||
$field->setValue(false);
|
||||
|
||||
/* dataValue() for the field is 0 */
|
||||
$this->assertEquals($field->dataValue(), 0, 'dataValue() returns a 0');
|
||||
/* dataValue() for the field is null */
|
||||
$this->assertEquals($field->dataValue(), null, 'dataValue() returns a 0');
|
||||
|
||||
/* Value() returns 0 as well */
|
||||
$this->assertEquals($field->Value(), 0, 'Value() returns a 0');
|
||||
@ -63,8 +63,8 @@ class CheckboxFieldTest extends SapphireTest {
|
||||
/* Create the field, but don't set any value on it */
|
||||
$field = new CheckboxField('IsChecked', 'Checked');
|
||||
|
||||
/* dataValue() for the field is 0 */
|
||||
$this->assertEquals($field->dataValue(), 0, 'dataValue() returns a 0');
|
||||
/* dataValue() for the field is null */
|
||||
$this->assertEquals($field->dataValue(), null, 'dataValue() returns a 0');
|
||||
|
||||
/* Value() returns 0 as well */
|
||||
$this->assertEquals($field->Value(), 0, 'Value() returns a 0');
|
||||
|
Loading…
Reference in New Issue
Block a user