Avoid using Title::__construct

Change-Id: Ic78da7e9f417ee64288537e008068949edb1fbac
This commit is contained in:
Daimona Eaytoy 2020-03-07 13:14:39 +00:00
parent d595a4f478
commit 3d2441cfef

View file

@ -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()