Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Correct tests for group multicheckbox & radio attributes #4232

Closed
wants to merge 1 commit into from

Conversation

Chintanvpatel
Copy link
Contributor

Correct test cases for group multicheckbox & radio attributes.

),
));
$markup = $this->helper->render($element);
$this->assertRegexp('#selected="selected" value="value1"#', $markup);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't make sense, and actually fails currently. "selected" is an invalid and unrecognized attribute for checkboxes. It should instead verify that the markup contains 'checked="checked"'. I'll make that change on merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I made mistake in hurry :)

weierophinney added a commit that referenced this pull request Apr 15, 2013
Correct tests for group multicheckbox & radio attributes

Conflicts:
	tests/ZendTest/Form/View/Helper/FormMultiCheckboxTest.php
weierophinney added a commit that referenced this pull request Apr 15, 2013
@ghost ghost assigned weierophinney Apr 15, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants