Problem/Motivation
In #2409647: Figure out if ContainerDerivativeDiscoveryDecoratorTest actually covers getDerivativeFetcher() a test was added to cover ContainerDerivativeDiscoveryDecorator::getDefinitions().
Unfortunately, ContainerDerivativeDiscoveryDecorator doesn't have a getDefinitions() method to cover; it's parent class does.
So the test is in the wrong place, really.
Proposed resolution
Move the ContainerDerivativeDiscoveryDecoratorTest::testGetDefinitions() test method to the DerivativeDiscoveryDecoratorTest test class.
Ensure that @coversDefaultClass and @covers annotations are correct.
Remaining tasks
Bonus points: Write a test that covers ContainerDerivativeDiscoveryDecorator::getDeriver().
User interface changes
API changes
Data model changes
Issue fork drupal-2620330
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 2620330-move-test
changes, plain diff MR !13841
Comments
Comment #2
mile23Comment #16
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #17
smustgrave commentedThis is still relevant.
Comment #20
phenaproximaLooks right to me, and does what the issue summary asks for. One small nit with regard to whitespace at the end of the class, but that could be fixed on commit (I think).
Comment #21
xjmComment #24
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!