X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fplugins%2Ftest%2Ftest.php;fp=tests%2Fplugins%2Ftest%2Ftest.php;h=34cd339e1a8cb84409f689d3a48f67dbb5124744;hb=bd11879018416d2c5d87728bb0be6ee0cf54451a;hp=03be4f4e8c997bd9eb875ad1f42a65bf4d294eb7;hpb=8f423eb11c6642d96b5144f56e4698652591ad6b;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php index 03be4f4e..34cd339e 100644 --- a/tests/plugins/test/test.php +++ b/tests/plugins/test/test.php @@ -27,3 +27,19 @@ function hook_test_error() { new Unknown(); } + +function test_register_routes(): array +{ + return [ + [ + 'method' => 'GET', + 'route' => '/test', + 'callable' => 'getFunction', + ], + [ + 'method' => 'POST', + 'route' => '/custom', + 'callable' => 'postFunction', + ], + ]; +}