public function testRenderBasicCheckboxWithValue() { $checkbox = new Checkbox('terms'); $expected = '<input type="checkbox" name="terms" value="agree">'; $result = $checkbox->value('agree')->render(); $this->assertEquals($expected, $result); $checkbox = new Checkbox('above_18'); $expected = '<input type="checkbox" name="above_18" value="true">'; $result = $checkbox->value('true')->render(); $this->assertEquals($expected, $result); }