Commit dfe6669b authored by catch's avatar catch
Browse files

Issue #3555884 by alexpott, smustgrave:...

Issue #3555884 by alexpott, smustgrave: Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::testCreate triggers PHP 8.5 deprecations

(cherry picked from commit 51379ceb)
parent fc5c1411
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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().