]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/plugins/test/test.php
Merge pull request #1645 from ArthurHoaro/feature/plugin-register-route
[github/shaarli/Shaarli.git] / tests / plugins / test / test.php
index 03be4f4e8c997bd9eb875ad1f42a65bf4d294eb7..34cd339e1a8cb84409f689d3a48f67dbb5124744 100644 (file)
@@ -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',
+        ],
+    ];
+}