From 469117ff28237a47fbebaf4fdaaf48427ddd2f56 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Mon, 21 Oct 2019 22:18:33 -0700 Subject: [PATCH] tests: getMock() is deprecated Bug: T192167 Change-Id: I460f9c5457483b9350c4f88c24d24425fd46a9a8 --- tests/phpunit/ApiFlowThankIntegrationTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/ApiFlowThankIntegrationTest.php b/tests/phpunit/ApiFlowThankIntegrationTest.php index f84a3d1d..0fb2d73d 100644 --- a/tests/phpunit/ApiFlowThankIntegrationTest.php +++ b/tests/phpunit/ApiFlowThankIntegrationTest.php @@ -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() ) );