Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
plugin system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Nov 2014 at 07:30 UTC
Updated:
20 Jan 2015 at 19:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mile23Comment #2
mile23This test only covers
::createInstance(). Other methods scored CRAP of 2, the lowest possible.We also use a mock test class, since some code paths within
::createInstance()require that the object implement a specific interface.Comment #3
mile23Comment #5
mile23DrupalComponentTest to the rescue. :-)
Comment #6
duaelfr2/2 tests PASS.
53% coverage.
Usual comments:
Unused :)
Comment #7
mile23Thanks!
Removed extra
uses.Also added beta evaluation thingie.
Comment #8
duaelfr:)
Comment #9
yesct commentedwe dont allow additional docs in an inheritdoc like this. it doesn't work with out docs parser. #1994890: Allow {@inheritdoc} and additional documentation
@uses?
I dont see that in #2057905: [policy, no patch] Discuss the standards for phpunit based tests
and others.
Should be third person verbs.
I'll just fix that.
we are adding these use's all at once, might as well be alphabetical order. (no order already there to mess up)
supposed to use full namespaced paths in comments. (I know it makes for really long comments...)
I reworded. See if it is still accurate.
Comment #10
mile23Thanks for the review.
Removed @uses.
Renamed
MockFallbackPluginManagertoStubFallbackPluginManagerbecause it's really a stub and not a mock.Poked some inline comments.
Comment #11
yesct commentedIs the code coverage more accurate or the same with the @uses ?
I asked about it in #2057905-54: [policy, no patch] Discuss the standards for phpunit based tests
Comment #12
mile23More.
I answered more indepth-ly over there, too.
Comment #13
daffie commentedThe function PluginManagerBase::createInstance has a 100% coverage according to phpunit coverage.
The does what is asked in the issue summary.
The tests test the ::createInstance function.
The documentation is in order.
The patch gets a green light from the test-server.
Shouldn't we add this minor change. If not, why?
For the rest the patch is RTBC for me.
Comment #14
mile23Whither this:
StubFallbackPluginManager is in the same namespace as the test class, so we don't have to qualify it.
Comment #15
daffie commented@Mile23: I did not know that. Learned something new.
Comment #17
mile23Patch in #10 still applies and passes tests locally. The tests which failed were unrelated. Asking the testbot yet again...
Comment #19
daffie commentedBefore the retest failed it was RTBC. Nothing has changed and the testbot is happy again. So back to RTBC.
Comment #21
daffie commentedWas committed by webchick. So setting status to fixed.