tests: getMock() is deprecated

Bug: T192167
Change-Id: I460f9c5457483b9350c4f88c24d24425fd46a9a8
This commit is contained in:
Max Semenik 2019-10-21 22:18:33 -07:00
parent 1acb40ee42
commit 469117ff28

View file

@ -3,6 +3,7 @@
use Flow\Model\AbstractRevision;
use Flow\Model\PostRevision;
use Flow\Model\UUID;
use Flow\Model\Workflow;
/**
* Integration tests for the Thanks Flow api module
@ -89,7 +90,7 @@ class ApiFlowThankIntegrationTest extends ApiTestCase {
}
) );
$mockWorkflow = $this->getMock( '\Flow\Model\Workflow' );
$mockWorkflow = $this->createMock( Workflow::class );
$mockWorkflow->expects( $this->any() )
->method( 'getOwnerTitle' )
->will( $this->returnValue( new Title() ) );