From 4f9065918a250cf3a799f9d7c2bfec937786f8ed Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 24 May 2011 08:58:36 +1200 Subject: [PATCH] MINOR Fixed CheckboxSetTest (broken by wrossiter in 771e93ef18858a0a4ab1088d0678ce9e4fca75df) --- tests/forms/CheckboxFieldTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/forms/CheckboxFieldTest.php b/tests/forms/CheckboxFieldTest.php index fa455c69e..a17305d0f 100644 --- a/tests/forms/CheckboxFieldTest.php +++ b/tests/forms/CheckboxFieldTest.php @@ -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');