From b367b05d5d5a07fcfa0b316afd03df9dce2586d9 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Mon, 24 Jun 2024 10:29:19 +0200 Subject: [PATCH] Ensure that a new instance was created Co-authored-by: Lukas Bestle --- tests/Content/ContentStorageHandlerTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Content/ContentStorageHandlerTest.php b/tests/Content/ContentStorageHandlerTest.php index d0c3b5833f..ca11afca7e 100644 --- a/tests/Content/ContentStorageHandlerTest.php +++ b/tests/Content/ContentStorageHandlerTest.php @@ -366,6 +366,8 @@ public function testFrom() // create a new handler with all the versions from the first one $handlerB = TestContentStorageHandler::from($handlerA); + $this->assertNotSame($handlerA, $handlerB); + $this->assertSame($publishedEN, $handlerB->read($versionPublished, $en)); $this->assertSame($publishedDE, $handlerB->read($versionPublished, $de));