mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
tests: getMock() is deprecated
Bug: T192167 Change-Id: I460f9c5457483b9350c4f88c24d24425fd46a9a8
This commit is contained in:
parent
1acb40ee42
commit
469117ff28
|
@ -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() ) );
|
||||
|
|
Loading…
Reference in a new issue