mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
FIX: two broken tests in UserDefinedFormControllerTest
This commit is contained in:
parent
f1ddac35d8
commit
0d4d949b23
@ -216,13 +216,13 @@ class UserDefinedFormControllerTest extends FunctionalTest {
|
|||||||
$this->assertArrayHasKey(0, $parser->getBySelector('input.text'));
|
$this->assertArrayHasKey(0, $parser->getBySelector('input.text'));
|
||||||
|
|
||||||
// check for the label and the text
|
// check for the label and the text
|
||||||
$label = $parser->getBySelector('label.left');
|
$label = $parser->getBySelector('label.field__label');
|
||||||
$this->assertArrayHasKey(0, $label);
|
$this->assertArrayHasKey(0, $label);
|
||||||
|
|
||||||
$this->assertEquals((string) $label[0][0], "Basic Text Field", "Label contains correct field name");
|
$this->assertEquals((string) $label[0][0], "Basic Text Field", "Label contains correct field name");
|
||||||
|
|
||||||
// check for the action
|
// check for the action
|
||||||
$action = $parser->getBySelector('input.action');
|
$action = $parser->getBySelector('input.btn--submit');
|
||||||
$this->assertArrayHasKey(0, $action);
|
$this->assertArrayHasKey(0, $action);
|
||||||
|
|
||||||
$this->assertEquals((string) $action[0]['value'], "Submit", "Submit button has default text");
|
$this->assertEquals((string) $action[0]['value'], "Submit", "Submit button has default text");
|
||||||
|
@ -123,5 +123,3 @@ UserDefinedForm:
|
|||||||
Fields: =>EditableCheckbox.checkbox-2, =>EditableTextField.basic-text-2
|
Fields: =>EditableCheckbox.checkbox-2, =>EditableTextField.basic-text-2
|
||||||
empty-form:
|
empty-form:
|
||||||
Title: Empty Form
|
Title: Empty Form
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user