use new interface of TestCase
Some checks failed
soko-web/pipeline/pr-master There was a failure building this commit

This commit is contained in:
Bence Pőcze 2023-09-27 21:51:34 +02:00
parent 2226b88a88
commit 29e5e9c68b
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -16,7 +16,7 @@ final class GoogleOAuthTest extends TestCase
$nonce = 'random_nonce_string'; $nonce = 'random_nonce_string';
$redirectUrl = 'http://example.com/oauth'; $redirectUrl = 'http://example.com/oauth';
$requestMock = $this->getMockBuilder(IRequest::class) $requestMock = $this->createMock(IRequest::class)
->setMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send']) ->setMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send'])
->getMock(); ->getMock();
$googleOAuth = new GoogleOAuth($requestMock); $googleOAuth = new GoogleOAuth($requestMock);
@ -50,7 +50,7 @@ final class GoogleOAuthTest extends TestCase
$requestMock = $this->getMockBuilder(IRequest::class) $requestMock = $this->getMockBuilder(IRequest::class)
->setMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send']) ->setMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send'])
->getMock(); ->getMock();
$responseMock = $this->getMockBuilder(IResponse::class) $responseMock = $this->createMock(IResponse::class)
->setMethods(['getBody', 'getHeaders']) ->setMethods(['getBody', 'getHeaders'])
->getMock(); ->getMock();
$googleOAuth = new GoogleOAuth($requestMock); $googleOAuth = new GoogleOAuth($requestMock);