Updated: Comment #0
Problem/Motivation
FieldableDatabaseEntityStorageTest.php contains the class ContentEntityDatabaseStorageTest. Per the PSR-0 standard it should be called ContentEntityDatabaseStorageTest.php
This is an artifact of #2188613: Rename EntityStorageController to EntityStorage (I think, didn't check.)
Proposed resolution
Rename the file to ContentEntityDatabaseStorageTest.php
For extra credit remove the unused use statement for EntityType (line 10) as well.
If you are familiar with PhpUnit tests or want to become it, you can see what other tests do with @coversDefaultClass and @covers and apply that here as well. That would really be extra, extra credit then.
Only the rename is required though, no stress! :-)
Remaining tasks
User interface changes
API changes
Comments
Comment #1
cs_shadow commentedAttaching a patch with the file rename and removing the unused use statement. Will try to work on the unit-tests next.
Comment #3
visabhishek commentedi have renamed the file to ContentEntityDatabaseStorageTest.php
and removed the unused use statement for EntityType (line 10) as well.
Comment #5
cs_shadow commentedPatch in #1 missed the rename. This one should work.
Comment #6
cs_shadow commentedComment #7
fran seva commentedAttach the patch with the rename file and the removed line (10)
This for rename the file
--- core/tests/Drupal/Tests/Core/Entity/FieldableDatabaseEntityStorageTest.php (revision ef2563979aca382174d7a301ca6eb81c70d16a42)
+++ core/tests/Drupal/Tests/Core/Entity/ContentEntityDatabaseStorageTest.php (revision )
And this to remove the line of code:
-use Drupal\Core\Entity\EntityType;
Comment #9
fran seva commentedUps, I have commented at the same time.
Sorry.
Comment #10
cs_shadow commentedComment #11
visabhishek commentedi have renamed the file to ContentEntityDatabaseStorageTest.php
and removed the unused use statement for EntityType (line 10) as well.
Comment #12
cs_shadow commentedRe-submitting the patch in #5. It passed the tests, but apparently doesn't reflects so on this page.
Comment #13
tstoecklerAwesome, thanks!
Re @visabhishek: If you use the
-Cand-Moptions withgit diffGit will detect the rename of the while so that the patch looks much smaller. Then your patch will be like the one in #12.Comment #14
webchickGood catch.
Committed and pushed to 8.x. Thanks!
Comment #16
fran seva commented@tstoeckler thanks for the tip!!!
Comment #17
visabhishek commented@tstoeckler: Thanks.