Fix typo in test

This commit is contained in:
Oliver Davies 2020-05-30 13:29:20 +01:00
parent 7d8a2dffc5
commit 79c4d9e5fd

View file

@ -25,9 +25,9 @@ class AuthTokenRequestTest extends TestCase
) )
->getMock(); ->getMock();
$mockRepsonse = $this->getMockBuilder(ResponseInterface::class) $mockResponse = $this->getMockBuilder(ResponseInterface::class)
->getMock(); ->getMock();
$mockRepsonse->method('getContent')->willReturn('"abc123"'); $mockResponse->method('getContent')->willReturn('"abc123"');
$client = $this->getMockBuilder(MockHttpClient::class)->getMock(); $client = $this->getMockBuilder(MockHttpClient::class)->getMock();
$client->expects($this->once()) $client->expects($this->once())
@ -43,7 +43,7 @@ class AuthTokenRequestTest extends TestCase
], ],
] ]
) )
->willReturn($mockRepsonse); ->willReturn($mockResponse);
$token = (new AuthTokenRequest($client)) $token = (new AuthTokenRequest($client))
->withConfig($config) ->withConfig($config)