Problem/Motivation
type the following from the root directory
cd core
phpunit --coverage-html html --verbose --bootstrap tests/bootstrap.php
Please not that the errors don't show unless the "--coverage-html" is added.
As of today there are two error relating to outdated $cover statements. One is in the entity module.
1) Drupal\Tests\Core\Entity\EntityUrlTest::testGetSystemPath
PHP_CodeCoverage_Exception: Trying to @cover not existing method "\Drupal\Core\Entity\Entity::getPathByAlias".
2) Drupal\path\Tests\Field\PathFieldDefinitionTest::testGetColumns
PHP_CodeCoverage_Exception: Trying to @cover not existing method "\Drupal\path\Plugin\Field\FieldType\PathItem::getSchema".
Proposed resolution
Update the @cover statement to relate to the correct method under test.
Remaining tasks
none
User interface changes
none
API changes
none
| Comment | File | Size | Author |
|---|---|---|---|
| badCovers.patch | 578 bytes | martin107 |
Comments
Comment #1
martin107 commentedComment #2
dawehnerGood catch!
Comment #4
ParisLiakos commentedbadCovers.patch queued for re-testing.
Comment #5
ParisLiakos commentedComment #6
jhodgdonThanks! Committed to 8.x.