summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/tests/phpunit/mocks/MockCustomInsertableSuggester.php')
-rw-r--r--MLEB/Translate/tests/phpunit/mocks/MockCustomInsertableSuggester.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/MLEB/Translate/tests/phpunit/mocks/MockCustomInsertableSuggester.php b/MLEB/Translate/tests/phpunit/mocks/MockCustomInsertableSuggester.php
new file mode 100644
index 00000000..350e6643
--- /dev/null
+++ b/MLEB/Translate/tests/phpunit/mocks/MockCustomInsertableSuggester.php
@@ -0,0 +1,10 @@
+<?php
+declare( strict_types = 1 );
+
+use MediaWiki\Extension\Translate\TranslatorInterface\Insertable\InsertablesSuggester;
+
+class MockCustomInsertableSuggester implements InsertablesSuggester {
+ public function getInsertables( string $text ): array {
+ return [ new Insertable( 'test' ) ];
+ }
+}