Commit 027c0bfd authored by catch's avatar catch
Browse files

Issue #3555935 by alexpott:...

Issue #3555935 by alexpott: \Drupal\Tests\Core\Config\Entity\ConfigEntityStorageTest triggers deprecations on PHP. 8.5

(cherry picked from commit cfc16dff)
parent 1a64d315
Loading
Loading
Loading
Loading
Loading
+28 −4
Original line number Diff line number Diff line
@@ -268,7 +268,13 @@ public function testSaveInsert(EntityInterface $entity) {
      ])
      ->shouldBeCalled();
    $config_object->save(FALSE)->shouldBeCalled();
    $config_object->get()->willReturn([]);
    $config_object->get()->willReturn([
      'id' => 'foo',
      'uuid' => 'bar',
      'dependencies' => [],
      'langcode' => 'hu',
      'status' => TRUE,
    ])->shouldBeCalled();

    $this->cacheTagsInvalidator->invalidateTags([$this->entityTypeId . '_list'])
      ->shouldBeCalled();
@@ -323,7 +329,13 @@ public function testSaveUpdate(EntityInterface $entity) {
      ])
      ->shouldBeCalled();
    $config_object->save(FALSE)->shouldBeCalled();
    $config_object->get()->willReturn([]);
    $config_object->get()->willReturn([
      'id' => 'foo',
      'uuid' => 'bar',
      'dependencies' => [],
      'langcode' => 'hu',
      'status' => TRUE,
    ])->shouldBeCalled();

    $this->cacheTagsInvalidator->invalidateTags([$this->entityTypeId . '_list'])
      ->shouldBeCalled();
@@ -380,7 +392,13 @@ public function testSaveRename(ConfigEntityInterface $entity): void {
      ->shouldBeCalled();
    $config_object->save(FALSE)
      ->shouldBeCalled();
    $config_object->get()->willReturn([]);
    $config_object->get()->willReturn([
      'id' => 'bar',
      'uuid' => 'bar',
      'dependencies' => [],
      'langcode' => 'hu',
      'status' => TRUE,
    ])->shouldBeCalled();

    $this->cacheTagsInvalidator->invalidateTags([$this->entityTypeId . '_list'])
      ->shouldBeCalled();
@@ -481,7 +499,13 @@ public function testSaveNoMismatch(): void {
    $immutable_config_object->isNew()->willReturn(TRUE);

    $config_object = $this->prophesize(Config::class);
    $config_object->get()->willReturn([]);
    $config_object->get()->willReturn([
      'id' => 'foo',
      'uuid' => NULL,
      'dependencies' => [],
      'langcode' => 'en',
      'status' => TRUE,
    ])->shouldBeCalled();
    $config_object
      ->setData([
        'id' => 'foo',