FIX: two broken tests in UserDefinedFormControllerTest

This commit is contained in:
Mike 2015-01-22 16:36:22 +13:00
parent f1ddac35d8
commit 0d4d949b23
2 changed files with 19 additions and 21 deletions

View File

@ -216,13 +216,13 @@ class UserDefinedFormControllerTest extends FunctionalTest {
$this->assertArrayHasKey(0, $parser->getBySelector('input.text'));
// check for the label and the text
$label = $parser->getBySelector('label.left');
$label = $parser->getBySelector('label.field__label');
$this->assertArrayHasKey(0, $label);
$this->assertEquals((string) $label[0][0], "Basic Text Field", "Label contains correct field name");
// check for the action
$action = $parser->getBySelector('input.action');
$action = $parser->getBySelector('input.btn--submit');
$this->assertArrayHasKey(0, $action);
$this->assertEquals((string) $action[0]['value'], "Submit", "Submit button has default text");

View File

@ -123,5 +123,3 @@ UserDefinedForm:
Fields: =>EditableCheckbox.checkbox-2, =>EditableTextField.basic-text-2
empty-form:
Title: Empty Form