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'); }