aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/structure/RestStructureTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/structure/RestStructureTest.php')
-rw-r--r--tests/phpunit/structure/RestStructureTest.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/phpunit/structure/RestStructureTest.php b/tests/phpunit/structure/RestStructureTest.php
index c772509e0105..6806f1cb61f4 100644
--- a/tests/phpunit/structure/RestStructureTest.php
+++ b/tests/phpunit/structure/RestStructureTest.php
@@ -112,7 +112,9 @@ class RestStructureTest extends MediaWikiIntegrationTestCase {
$context->method( 'getAuthority' )->willReturn( $authority );
$context->method( 'getRequest' )->willReturn( $request );
- $responseFactory = $this->createNoOpMock( ResponseFactory::class );
+ $responseFactory = $this->createNoOpMock( ResponseFactory::class, [ 'getFormattedMessage' ] );
+ $responseFactory->method( 'getFormattedMessage' )->willReturn( '' );
+
$cors = $this->createNoOpMock( CorsUtils::class );
$services = $this->getFakeServiceContainer();
@@ -156,7 +158,9 @@ class RestStructureTest extends MediaWikiIntegrationTestCase {
$context->method( 'getAuthority' )->willReturn( $authority );
$context->method( 'getRequest' )->willReturn( $request );
- $responseFactory = $this->createNoOpMock( ResponseFactory::class );
+ $responseFactory = $this->createNoOpMock( ResponseFactory::class, [ 'getFormattedMessage' ] );
+ $responseFactory->method( 'getFormattedMessage' )->willReturn( '' );
+
$cors = $this->createNoOpMock( CorsUtils::class );
$this->router = EntryPoint::createRouter(