Skip to content
Snippets Groups Projects
Commit a3309c2f authored by Daniel Wehner's avatar Daniel Wehner
Browse files

fix tests

parent 0263c3e7
No related branches found
No related tags found
No related merge requests found
......@@ -100,8 +100,8 @@ trait RevisionControllerTrait {
* @return mixed[]
*/
protected function revisionIds(ContentEntityInterface $entity) {
$entity_type = $entity->getEntityTypeId();
$result = $this->entityTypeManager()->getStorage($entity_type)->getQuery()
$entity_type = $entity->getEntityType();
$result = $this->entityTypeManager()->getStorage($entity_type->id())->getQuery()
->allRevisions()
->condition($entity_type->getKey('id'), $entity->id())
->sort($entity_type->getKey('revision'), 'DESC')
......
......@@ -49,6 +49,7 @@ class RevisionBasicUITest extends KernelTestBase {
public function testRevisionHistory() {
$entity = EnhancedEntity::create([
'name' => 'rev 1',
'type' => 'default',
]);
$entity->save();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment