summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/tests/phpunit/mocks/MockWikiMessageGroup.php')
-rw-r--r--MLEB/Translate/tests/phpunit/mocks/MockWikiMessageGroup.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/MLEB/Translate/tests/phpunit/mocks/MockWikiMessageGroup.php b/MLEB/Translate/tests/phpunit/mocks/MockWikiMessageGroup.php
index ad257d57..fc50c4b2 100644
--- a/MLEB/Translate/tests/phpunit/mocks/MockWikiMessageGroup.php
+++ b/MLEB/Translate/tests/phpunit/mocks/MockWikiMessageGroup.php
@@ -1,4 +1,7 @@
<?php
+
+use MediaWiki\Extension\Translate\Validation\ValidationRunner;
+
/**
* This file contains multiple unmanaged message group implementation.
*
@@ -33,7 +36,7 @@ class MockWikiMessageGroup extends WikiMessageGroup {
*/
class MockWikiValidationMessageGroup extends MockWikiMessageGroup {
public function getValidator() {
- $validator = new MessageValidator( $this->getId() );
+ $validator = new ValidationRunner( $this->getId() );
$validator->setValidators( [
[ 'class' => AnotherMockTranslateValidator::class ],
[