X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fauth%2FAuthenticationRequestTest.php;h=0e549a5ca6168d3566f3b928d502b5565472f7fb;hp=7d2ba8d7494f591b6d94c3f4a3f3ef28d4cf5b33;hb=424251a2cb5842727756d96f877c787c443ea056;hpb=adae996840b9e782f6e14b21c433a83e37c3a74e diff --git a/tests/phpunit/includes/auth/AuthenticationRequestTest.php b/tests/phpunit/includes/auth/AuthenticationRequestTest.php index 7d2ba8d749..0e549a5ca6 100644 --- a/tests/phpunit/includes/auth/AuthenticationRequestTest.php +++ b/tests/phpunit/includes/auth/AuthenticationRequestTest.php @@ -138,7 +138,7 @@ class AuthenticationRequestTest extends \MediaWikiTestCase { public function testMergeFieldInfo() { $msg = wfMessage( 'foo' ); - $req1 = $this->getMock( AuthenticationRequest::class ); + $req1 = $this->createMock( AuthenticationRequest::class ); $req1->required = AuthenticationRequest::REQUIRED; $req1->expects( $this->any() )->method( 'getFieldInfo' )->will( $this->returnValue( [ 'string1' => [ @@ -165,7 +165,7 @@ class AuthenticationRequestTest extends \MediaWikiTestCase { ], ] ) ); - $req2 = $this->getMock( AuthenticationRequest::class ); + $req2 = $this->createMock( AuthenticationRequest::class ); $req2->required = AuthenticationRequest::REQUIRED; $req2->expects( $this->any() )->method( 'getFieldInfo' )->will( $this->returnValue( [ 'string1' => [ @@ -187,7 +187,7 @@ class AuthenticationRequestTest extends \MediaWikiTestCase { ], ] ) ); - $req3 = $this->getMock( AuthenticationRequest::class ); + $req3 = $this->createMock( AuthenticationRequest::class ); $req3->required = AuthenticationRequest::REQUIRED; $req3->expects( $this->any() )->method( 'getFieldInfo' )->will( $this->returnValue( [ 'string1' => [ @@ -197,7 +197,7 @@ class AuthenticationRequestTest extends \MediaWikiTestCase { ], ] ) ); - $req4 = $this->getMock( AuthenticationRequest::class ); + $req4 = $this->createMock( AuthenticationRequest::class ); $req4->required = AuthenticationRequest::REQUIRED; $req4->expects( $this->any() )->method( 'getFieldInfo' )->will( $this->returnValue( [] ) );