Loading core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php +28 −4 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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(); Loading Loading @@ -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(); Loading Loading @@ -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', Loading Loading
core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php +28 −4 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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(); Loading Loading @@ -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(); Loading Loading @@ -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', Loading