From 9fd0afae43ecef05cffedb35fbaa695ae117a6e1 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Tue, 16 Jul 2024 11:45:30 +0200 Subject: [PATCH] Fix jackalope 2 compatibility --- .../Sulu/Content/ArticleContentQueryBuilderTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/Functional/Infrastructure/Sulu/Content/ArticleContentQueryBuilderTest.php b/Tests/Functional/Infrastructure/Sulu/Content/ArticleContentQueryBuilderTest.php index c8ffdce0..713aa07f 100644 --- a/Tests/Functional/Infrastructure/Sulu/Content/ArticleContentQueryBuilderTest.php +++ b/Tests/Functional/Infrastructure/Sulu/Content/ArticleContentQueryBuilderTest.php @@ -413,7 +413,9 @@ private function save( if (!$isShadow) { /* @var ArticleDocument $document */ try { - $document = $this->documentManager->find($uuid, $locale, ['load_ghost_content' => false]); + $document = $uuid + ? $this->documentManager->find($uuid, $locale, ['load_ghost_content' => false]) + : $this->documentManager->create('article'); } catch (DocumentNotFoundException $e) { $document = $this->documentManager->create('article'); }