Skip to content

[WIP] [3.0] [Form] fix tests added by #17760 by removing choices_as_values #17886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

HeahDude
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? not yet
Fixed tickets n/a
License MIT
Doc PR -

{
$view = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', null, array(
'choices' => $this->scalarChoices,
))->createView();
Copy link
Contributor

Choose a reason for hiding this comment

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

If you're merging this into 3.0, you can use ChoiceType::class, not sure if that's preferable though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@iltar, I know, I even proposed to use constants in core type tests (see #17699 (comment)) as of 2.8 but this is actually to be consistent with other tests ;)

fabpot added a commit that referenced this pull request Feb 26, 2016
…ude)

This PR was merged into the 2.7 branch.

Discussion
----------

[2.7] [Form] fix choice value "false" in ChoiceType

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17292, #14712, #17789
| License       | MIT
| Doc PR        | -

- [x] Add tests for choices with `boolean` and `null` values, and with a placeholder
- [x] Fix FQCN in 2.8 tests, see #17759
- [x] Remove `choices_as_values` in 3.0 tests, see #17886

Commits
-------

8f918e5 [Form] refactor `RadioListMapper::mapDataToForm()`
3eac469 [Form] fix choice value "false" in ChoiceType
@fabpot
Copy link
Member

fabpot commented Feb 26, 2016

#17760 merged

@fabpot
Copy link
Member

fabpot commented Feb 26, 2016

#17760 breaks 3.0, @HeahDude Can you have a look at this ASAP please?

@HeahDude HeahDude force-pushed the fix_tests-17760-3_0 branch from 6d3d86d to 1850da1 Compare February 26, 2016 05:27
@HeahDude
Copy link
Contributor Author

Should be ok. Let me know :)

@HeahDude
Copy link
Contributor Author

Not yet :(

@HeahDude HeahDude force-pushed the fix_tests-17760-3_0 branch from 1850da1 to e7234d8 Compare February 26, 2016 05:44
@HeahDude
Copy link
Contributor Author

Ok now I'm waiting for the green lights.

@fabpot
Copy link
Member

fabpot commented Feb 26, 2016

Thank you @HeahDude.

fabpot added a commit that referenced this pull request Feb 26, 2016
… `choices_as_values` (HeahDude)

This PR was squashed before being merged into the 3.0 branch (closes #17886).

Discussion
----------

[WIP] [3.0] [Form] fix tests added by #17760 by removing `choices_as_values`

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | not yet
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | -

- [x] Wait for #17760 being merged in 3.0

Commits
-------

03a7705 [WIP] [3.0] [Form] fix tests added by #17760 by removing
@fabpot fabpot closed this Feb 26, 2016
@HeahDude HeahDude deleted the fix_tests-17760-3_0 branch February 26, 2016 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants