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

ensure compatibility with older PHPUnit mocks#29934

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
nicolas-grekas merged 1 commit intosymfony:3.4fromxabbuh:phpunit-mock-compat
Jan 25, 2019

Conversation

@xabbuh
Copy link
Member

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

@xabbuhxabbuh added this to the3.4 milestoneJan 19, 2019

$this->assertEquals(['a1' =>$ac1],$classMetadata2->getAttributesMetadata());
$this->assertSame(['a','b','c'],$ac1->getGroups());
$this->assertEquals(['a1' =>$ac1],$classMetadata1->getAttributesMetadata());
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@dunglas Can you have a look here? Reading the code the previous assertion on$classMetadata2 IMO was wrong and only accidentally worked because of our mock configuration line 62. Can you confirm that the change here is valid?

@xabbuhxabbuhforce-pushed thephpunit-mock-compat branch 7 times, most recently froma309317 to8780184CompareJanuary 24, 2019 08:13
/**
* @dataProvider methodExceptGetProvider
*/
publicfunctiontestSubmitFileWithNamelessForm($method)
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This test was completely broken and just worked because our mocked form behaved completely different from how a real form would behave. I am looking into a proper fix in a different PR.

@xabbuhxabbuhforce-pushed thephpunit-mock-compat branch 2 times, most recently frome2de9f6 to73369e7CompareJanuary 24, 2019 17:33
@xabbuhxabbuhforce-pushed thephpunit-mock-compat branch 2 times, most recently from51dfa67 to0b2546fCompareJanuary 25, 2019 08:55
@xabbuhxabbuh changed the title[WIP] ensure compatibility with older PHPUnit mocksensure compatibility with older PHPUnit mocksJan 25, 2019
@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commit0d9de7e intosymfony:3.4Jan 25, 2019
nicolas-grekas added a commit that referenced this pull requestJan 25, 2019
This PR was merged into the 3.4 branch.Discussion----------ensure compatibility with older PHPUnit mocks| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Commits-------0d9de7e [Form] ensure compatibility with older PHPUnit mocks
@xabbuhxabbuh deleted the phpunit-mock-compat branchJanuary 25, 2019 09:41
fabpot added a commit that referenced this pull requestFeb 12, 2019
This PR was merged into the 3.4 branch.Discussion----------[Form] add back test after fixing it| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#29934 (comment)| License       | MIT| Doc PR        |Commits-------0daeba8 add back test after fixing it
symfony-splitter pushed a commit to symfony/form that referenced this pull requestFeb 12, 2019
This PR was merged into the 3.4 branch.Discussion----------[Form] add back test after fixing it| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |symfony/symfony#29934 (comment)| License       | MIT| Doc PR        |Commits-------0daeba8e8a add back test after fixing it
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

3 participants

@xabbuh@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp