Permalink
Browse files

MINOR Fixing broken test MemberDatetimeOptionsetFieldTest, passing in…

… null for $validator argument
  • Loading branch information...
1 parent 865cde0 commit 3c70ea492268cb94f1e643d4202f7c0c6b001492 @halkyon halkyon committed Apr 12, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/forms/MemberDatetimeOptionsetFieldTest.php
View
8 tests/forms/MemberDatetimeOptionsetFieldTest.php
@@ -83,11 +83,11 @@ function testDateFormatCustomFormatAppearsInCustomInputInField() {
function testDateFormValid() {
$field = new MemberDatetimeOptionsetField('DateFormat', 'DateFormat');
- $this->assertTrue($field->validate());
+ $this->assertTrue($field->validate(null));
$_POST['DateFormat_custom'] = 'dd MM yyyy';
- $this->assertTrue($field->validate());
+ $this->assertTrue($field->validate(null));
$_POST['DateFormat_custom'] = 'sdfdsfdfd1244';
- $this->assertFalse($field->validate());
+ $this->assertFalse($field->validate(null));
}
}
@@ -97,4 +97,4 @@ function Link() {
return 'test';
}
-}
+}

0 comments on commit 3c70ea4

Please sign in to comment.