Skip to content

Commit

Permalink
test: add searchindexdata scope for test-resource
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Nov 14, 2023
1 parent a0cb6db commit 5196249
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/resources/Loader/SiteKitLoader/validResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5196249

Please sign in to comment.