Loading core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php +9 −0 Original line number Diff line number Diff line Loading @@ -1081,6 +1081,15 @@ public function testCreate(): void { $this->entityType->expects($this->atLeastOnce()) ->method('getKeys') ->willReturn(['id' => 'id']); $this->entityType ->method('getKey') ->willReturnMap([ ['default_langcode', 'default_langcode'], ['id', 'id'], ['langcode', 'langcode'], ['revision', 'revision_id'], ['uuid', 'uuid'], ]); // ContentEntityStorageBase iterates over the entity which calls this method // internally in ContentEntityBase::getProperties(). Loading Loading
core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php +9 −0 Original line number Diff line number Diff line Loading @@ -1081,6 +1081,15 @@ public function testCreate(): void { $this->entityType->expects($this->atLeastOnce()) ->method('getKeys') ->willReturn(['id' => 'id']); $this->entityType ->method('getKey') ->willReturnMap([ ['default_langcode', 'default_langcode'], ['id', 'id'], ['langcode', 'langcode'], ['revision', 'revision_id'], ['uuid', 'uuid'], ]); // ContentEntityStorageBase iterates over the entity which calls this method // internally in ContentEntityBase::getProperties(). Loading