Expanding unit test coverage, as per #2052109: [meta] Expand phpunit tests for \Drupal\Component\Plugin classes
Here we cover Drupal\Component\Plugin\Discovery\DiscoveryTrait and Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait.
I wanted to learn to test a trait.
Beta phase evaluation
| Unfrozen changes | Unfrozen because it only improves automated testing. |
|---|
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2370183_4.patch | 8.68 KB | mile23 |
| #4 | interdiff.txt | 2.4 KB | mile23 |
| #1 | 2370183_1.patch | 8.22 KB | mile23 |
Comments
Comment #1
mile23Covering the whole thing.
Comment #2
mile23Comment #3
duaelfr92/92 tests PASS
Coverage :
There are a few comments to make it perfect :
Unused.
Unused.
Needs a doc block.
Needs a doc block.
Needs a doc block.
Comment #4
mile23Incorporating all the changes from #3...
Comment #5
duaelfrPerfect, thank you :)
That's RTBC for me.
Comment #6
mile23@DuaelFr could you change the status if you want to RTBC? Thanks. :-)
Added beta status.
Comment #7
duaelfrI thought we needed more than one reviewer.
Let's RTBC it :)
Comment #8
yesct commentedWe just need one reviewer.
But sometimes we get more than one reviewer.
You will see sometimes a person who has worked on a patch earlier, or a small part of a bigger patch, they will review it, and comment: rtbc from me. They may not set the status to rtbc because, strictly speaking, the person to set it to do the final review and set it to rtbc is supposed to be someone who did not work on the patch.
Comment #10
webchickNot really the most qualified to give these sign-off, but they've been sitting here long enough for someone to raise objections, and moar test coverage is never a bad thing.
Committed and pushed to 8.0.x. Thanks!