Skip to content
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

Rework some tests that instantiate TableDiff #5746

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

morozov
Copy link
Member

@morozov morozov commented Oct 11, 2022

Similar to #5714, the diff should be instantiated by the comparator, not by a third party which the tests represent. See the testing guidelines for more details.

Comment on lines -231 to -232
$tableDiff->renamedColumns['comment_float_0']
= new Column('comment_double_0', Type::getType('decimal'), ['comment' => 'Double for real!']);
Copy link
Member Author

Choose a reason for hiding this comment

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

The comment in the renamed column diff ('Double for real!') cannot be different from the original column comment ('0') because the comparator would not detect this as a rename.

@morozov morozov marked this pull request as ready for review October 11, 2022 15:25
@morozov morozov requested a review from greg0ire October 11, 2022 15:25
@morozov morozov merged commit 31eb6ae into doctrine:3.5.x Oct 11, 2022
@morozov morozov deleted the rework-table-diff-tests branch October 11, 2022 15:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants