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=a6e9c08499f9f79dad88cb3ae9eacda0e0c34c96;hp=03be4f4e8c997bd9eb875ad1f42a65bf4d294eb7;hpb=6f9e0609f4c118142504234ebcc7d93456b5e588;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', + ], + ]; +}