X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=tests%2Fplugins%2Ftest%2Ftest.php;h=8dbb3f9464c8905fc5c5ed50f702102c1e3ec7a1;hb=refs%2Fpull%2F1698%2Fhead;hp=03be4f4e8c997bd9eb875ad1f42a65bf4d294eb7;hpb=458b6b9918ec27154dd45416947bb93bedb97109;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php index 03be4f4e..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']; +}