There are still lots of references to Entity in our tests in the Wikibase component. Most of them should be easily removable since we know which entity types we use in our tests.
Description
Details
Event Timeline
Change 274705 had a related patch set uploaded (by Daniel Kinzler):
Typehint against EntityDocument instead of Entity in unit tests.
Change 274705 merged by jenkins-bot:
Typehint against EntityDocument instead of Entity in unit tests.
In all of Wikibase php code I found these references that might still need to be changed:
lib/tests/phpunit/changes/EntityChangeTest.php: return 'Wikibase\DataModel\Entity\Entity';
repo/tests/phpunit/includes/Hooks/EditFilterHookRunnerTest.php: ->with( $this->isInstanceOf( 'Wikibase\DataModel\Entity\Entity' ) )
repo/includes/Hooks/EditFilterHookRunner.php: throw new InvalidArgumentException( '$new must be instance of Entity or EntityRedirect' );
Change 274918 had a related patch set uploaded (by Daniel Kinzler):
Change references to Entity to EntityDocument
Change 274918 merged by jenkins-bot:
Fix reference to Entity class in exception message.
@JanZerebecki, the issues you mentioned are fixed in https://gerrit.wikimedia.org/r/274918 and https://gerrit.wikimedia.org/r/274766.