mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixing broken test MemberDatetimeOptionsetFieldTest, passing in null for $validator argument
This commit is contained in:
parent
865cde0c39
commit
3c70ea4922
@ -83,11 +83,11 @@ class MemberDatetimeOptionsetFieldTest extends SapphireTest {
|
||||
|
||||
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 @@ class MemberDatetimeOptionsetFieldTest_Controller extends Controller {
|
||||
return 'test';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user