Use new mock method for auth token request

This commit is contained in:
Oliver Davies 2020-06-05 21:00:30 +01:00
parent 2ba89e1c6a
commit f2478e62a4

View file

@ -16,11 +16,7 @@ final class CustomerRequestTest extends TestCase
{
public function testThatItCreatesACustomer(): void
{
$authTokenRequest = $this->getMockBuilder(AuthTokenRequestInterface::class)
->getMock();
$authTokenRequest->expects($this->any())
->method('getToken')
->willReturn('testtoken');
$authTokenRequest = $this->getMockAuthTokenRequest();
$response = $this->getMockBuilder(ResponseInterface::class)
->getMock();