The interface was added and also removed during patching https://www.drupal.org/project/drupal/issues/2339151#comment-9342869 into core/modules/block/tests/src/Unit/BlockRepositoryTest.php.
| Comment | File | Size | Author |
|---|---|---|---|
| TestContextAwareBlockInterface.patch | 901 bytes | peterkokot |
Comments
Comment #3
tgreathouse commentedIs there a reason the @file comment directive is being removed in the above patch?
Comment #6
spokjeComment #7
spokje#3:
Yes, in this patch we remove the interface
interface TestContextAwareBlockInterfacewhich leaves this class with only one namespaced class, interface or trait.According to the Drupal 8 coding standard guide:
https://www.drupal.org/coding-standards/docs#file
As we can see here, PHPCS throws an error when we leave the
@filecomment in: https://www.drupal.org/pift-ci-job/2246216Comment #9
smustgrave commentedRunning against 9.5 branch but if that passes fine marking RTBC
Comment #10
smustgrave commentedLooks like everything passed. Not sure this needs a new test case will let the committer decide.
Comment #12
catchYep looks like this crept in as development cruft in 2014 and hasn't been touched since, let's just clean it up. Committed/pushed to 10.1.x, cherry-picked back through to 9.5.x, thanks!