-
Notifications
You must be signed in to change notification settings - Fork 87
it's impossible to remove all elements from collection #14
it's impossible to remove all elements from collection #14
Conversation
Fixed 2 invalid tests and bug |
@Maks3w @weierophinney @bakura10 any feedback? |
@svycka Can you write a new unit test that demonstrates the scenario, instead of altering an existing test, please? Right now, I cannot tell for sure from the tests what you're validating, as it's mixed in with other testing scenarios. |
$data = [ | ||
'colors' => [ | ||
'#ffffff', | ||
], | ||
]; | ||
$form->setData($data); | ||
$object = new \ArrayObject(); | ||
$form->bind($object); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do these test changes have to do with the change you're introducing? If they're unrelated, please revert them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weierophinney it is related only because it was not failing just because collection can't remove all elements that's what this PR fixes so it needs to be fixed also.
@weierophinney the and with |
it's impossible to remove all elements from collection
Fixed incorrect test to show that.