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 { ...@@ -100,8 +100,8 @@ trait RevisionControllerTrait {
* @return mixed[] * @return mixed[]
*/ */
protected function revisionIds(ContentEntityInterface $entity) { protected function revisionIds(ContentEntityInterface $entity) {
$entity_type = $entity->getEntityTypeId(); $entity_type = $entity->getEntityType();
$result = $this->entityTypeManager()->getStorage($entity_type)->getQuery() $result = $this->entityTypeManager()->getStorage($entity_type->id())->getQuery()
->allRevisions() ->allRevisions()
->condition($entity_type->getKey('id'), $entity->id()) ->condition($entity_type->getKey('id'), $entity->id())
->sort($entity_type->getKey('revision'), 'DESC') ->sort($entity_type->getKey('revision'), 'DESC')
......
...@@ -49,6 +49,7 @@ class RevisionBasicUITest extends KernelTestBase { ...@@ -49,6 +49,7 @@ class RevisionBasicUITest extends KernelTestBase {
public function testRevisionHistory() { public function testRevisionHistory() {
$entity = EnhancedEntity::create([ $entity = EnhancedEntity::create([
'name' => 'rev 1', 'name' => 'rev 1',
'type' => 'default',
]); ]);
$entity->save(); $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