]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/plugins/test/test.php
Merge pull request #1698 from ArthurHoaro/feature/plugins-search-filter
[github/shaarli/Shaarli.git] / tests / plugins / test / test.php
index 34cd339e1a8cb84409f689d3a48f67dbb5124744..8dbb3f9464c8905fc5c5ed50f702102c1e3ec7a1 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use Shaarli\Bookmark\Bookmark;
+
 /**
  * Hook for test.
  *
@@ -43,3 +45,8 @@ function test_register_routes(): array
         ],
     ];
 }
+
+function hook_test_filter_search_entry(Bookmark $bookmark, array $context): bool
+{
+    return $context['_result'];
+}