Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Form] add test for ArrayChoiceList handling null#17832

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromTobion:fix-array-choice-list-with-null
Feb 18, 2016

Conversation

@Tobion
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

I found this bug but then realised that it was already fixed in#17511.
So this just adds a test.

{
parent::setUp();

$this->object =new \stdClass();
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

this was broken because it was initialized aftergetChoices is called. so$this->object was actually null.

Copy link
Contributor

Choose a reason for hiding this comment

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

You should maybe just put it before the call toparent::setUp() instead of removing it and keep using$this->object ingetChoices()

@fabpot
Copy link
Member

Looks like this breaks the tests

@xabbuh
Copy link
Member

UsingassertSame() now doesn't work as the object isn't the same instance anymore.

@Tobion
Copy link
ContributorAuthor

Fixed

@HeahDude
Copy link
Contributor

👍

Status: Reviewed

@fabpot
Copy link
Member

Thank you@Tobion.

@fabpotfabpot merged commit00e3819 intosymfony:2.7Feb 18, 2016
fabpot added a commit that referenced this pull requestFeb 18, 2016
This PR was merged into the 2.7 branch.Discussion----------[Form] add test for ArrayChoiceList handling null| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -I found this bug but then realised that it was already fixed in#17511.So this just adds a test.Commits-------00e3819 [Form] add test for ArrayChoiceList handling null
@TobionTobion deleted the fix-array-choice-list-with-null branchFebruary 18, 2016 14:08
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@Tobion@fabpot@xabbuh@HeahDude@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp