From 3d2441cfefb38fc05e18c68fe48524599a5f7e26 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sat, 7 Mar 2020 13:14:39 +0000 Subject: [PATCH] Avoid using Title::__construct Change-Id: Ic78da7e9f417ee64288537e008068949edb1fbac --- tests/phpunit/ApiFlowThankIntegrationTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/ApiFlowThankIntegrationTest.php b/tests/phpunit/ApiFlowThankIntegrationTest.php index e4045fa6..9066decb 100644 --- a/tests/phpunit/ApiFlowThankIntegrationTest.php +++ b/tests/phpunit/ApiFlowThankIntegrationTest.php @@ -93,10 +93,10 @@ class ApiFlowThankIntegrationTest extends ApiTestCase { $mockWorkflow = $this->createMock( Workflow::class ); $mockWorkflow->expects( $this->any() ) ->method( 'getOwnerTitle' ) - ->will( $this->returnValue( new Title() ) ); + ->willReturn( $this->createMock( Title::class ) ); $mockWorkflow->expects( $this->any() ) ->method( 'getArticleTitle' ) - ->will( $this->returnValue( new Title() ) ); + ->willReturn( $this->createMock( Title::class ) ); $mockStorage = $this->getMockBuilder( '\Flow\Data\ManagerGroup' ) ->disableOriginalConstructor()