From 51962494f72a09a37013fb38f705ae319dddef45 Mon Sep 17 00:00:00 2001 From: veltrup Date: Tue, 14 Nov 2023 16:29:37 +0100 Subject: [PATCH] test: add searchindexdata scope for test-resource --- .../Loader/SiteKitLoader/validResource.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/resources/Loader/SiteKitLoader/validResource.php b/test/resources/Loader/SiteKitLoader/validResource.php index dba2683..990fd1e 100644 --- a/test/resources/Loader/SiteKitLoader/validResource.php +++ b/test/resources/Loader/SiteKitLoader/validResource.php @@ -47,6 +47,20 @@ ]); } +if ($lifecycle->finish($resource)) { + return $resource; +} + +if ($lifecycle->process("searchindexdata", $resource)) { + $resource->process("searchindexdata", [ + "content" => "Der neue Webauftritt mit aktuellen Informationen." + ]); +} + +if ($lifecycle->finish($resource)) { + return $resource; +} + if ($lifecycle->process("content", $resource)) { $resource->process("content", [ "type" => "ROOT",