Skip to content

Commit

Permalink
Because these tests needed updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed Jun 17, 2020
1 parent d4ea483 commit f5885e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/FieldBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function testMakeCheckInput()
]);

$this->assertTrue(is_string($test));
$this->assertEquals('<div class="form-check"><input id="Avatar" class="form-check-input" type="checkbox" name="avatar" ><label class="form-check-label">foo</label></div>', $test);
$this->assertEquals('<div class="form-check"><input id="Avatar" class="form-check-input" type="radio" name="avatar" ><label class="form-check-label" for="Avatar">foo</label></div>', $test);
}

public function testMakeCheckbox()
Expand Down
2 changes: 1 addition & 1 deletion tests/FieldMakerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function testCreateCheckboxArray()
$field = $this->fieldMaker->make('gender[male]', $config['gender[male]'], $object);

$this->assertTrue(is_string($field));
$this->assertEquals('<div class="form-group"><div class="form-check"><input class="form-check-input" id="Gender[male]" type="checkbox" name="gender[male]" checked><label class="form-check-label">Male</label></div></div>', $field);
$this->assertEquals('<div class="form-group"><div class="form-check"><input class="form-check-input" id="Gender[male]" type="checkbox" name="gender[male]" checked><label class="form-check-label" for="Gender[male]">Male</label></div></div>', $field);
}

public function testCreateMultipleSelect()
Expand Down
2 changes: 1 addition & 1 deletion tests/FormExtensiveBaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ public function testMakeWithClassChanges()
$this->assertStringContainsString('<div class="form-group row"><label class="col-md-2 col-form-label pt-0" for="Name">Name</label>', $form);
$this->assertStringContainsString('<div class="col-md-10"><input class="form-control" id="Name" name="name" type="text" value="">', $form);
$this->assertStringContainsString('<legend class="col-md-2 col-form-label pt-0"></legend><div class="col-md-10"><div class="form-check">', $form);
$this->assertStringContainsString('<input class="form-check-input" id="Is_cool" type="checkbox" name="is_cool" ><label class="form-check-label">Is Cool</label>', $form);
$this->assertStringContainsString('<input class="form-check-input" id="Is_cool" type="checkbox" name="is_cool" ><label class="form-check-label" for="Is_cool">Is Cool</label>', $form);
}
}

0 comments on commit f5885e8

Please sign in to comment.