X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fplugins%2Ftest%2Ftest.php;h=8dbb3f9464c8905fc5c5ed50f702102c1e3ec7a1;hb=refs%2Fpull%2F1698%2Fhead;hp=ae5032dd36a5b19fc999c387c008ff781481c70c;hpb=46237c97884458b1a75ae871264cd3fb54f8cd74;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php index ae5032dd..8dbb3f94 100644 --- a/tests/plugins/test/test.php +++ b/tests/plugins/test/test.php @@ -1,5 +1,7 @@ 'GET', + 'route' => '/test', + 'callable' => 'getFunction', + ], + [ + 'method' => 'POST', + 'route' => '/custom', + 'callable' => 'postFunction', + ], + ]; +} + +function hook_test_filter_search_entry(Bookmark $bookmark, array $context): bool +{ + return $context['_result']; +}