Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
language.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Oct 2014 at 11:32 UTC
Updated:
11 Dec 2014 at 13:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yesct commentedComment #2
xanoComment #3
yesct commentedComment #4
lhangea commentedPatch by cheops90
Comment #5
ebeyrent commentedComment #6
ebeyrent commentedFixed a duplicate expects()
Comment #9
ebeyrent commentedFixed mock declaration
Comment #10
yesct commented@cheops90 Did you have trouble getting logged into your drupal.org account?
@ebeyrent Thanks for taking a look at this issue.
Please add a comment explaining the different approach you took from #4
Also, note that interdiffs are useful. For instructions on creating an interdiff, see https://drupal.org/documentation/git/interdiff
Comment #11
martin107 commentedHello ebeyrent, hope you don't mind... I just want to see what the testbot has to say about your patch
so I am bumping the status to "Needs review"
Comment #12
ebeyrent commentedI took a slightly different approach for two reasons.
First, while there's only one test method currently, there's bound to be others in the future, so having a fixture seemed more appropriate to me than creating the language interface mock directly in the test method.
The second reason is that it follows the same convention already in place in the unit test - there are already several other mocks that are created in the setUp(), and so it made sense to follow that approach.
What do you guys think?
Comment #13
skipyT commented@YesCT: cheops90 had issues with uploading the patch, cause he doesn't has the not a spammer role yet. he applied for one and lhangea uploaded the patch file instead of him.
Comment #14
yesct commented@skipyT OK. Please link to the webmasters issue requesting the not a spammer role for @cheops90
[edit: I ask because I did not find it in https://www.drupal.org/project/issues/webmasters ]
Also, you are all welcome in #drupal-contribute on irc.freenode.net https://www.drupal.org/irc
Comment #15
cheops90 commentedI think the @ebeyrent patch have almost the same approach with my patch, but his advantage how already he said is to use the same LanguageInterface mock in future methods.
So i think we should go with @ebeyrent patch.
Comment #16
jhedstrom#9 looks good. This is allowed under beta phase because it cleans up internal unit test code.
Comment #17
alexpottCommitted c1bc910 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation for to the issue summary.