mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-01-22 12:07:32 +00:00
Use new mock method for auth token request
This commit is contained in:
parent
2ba89e1c6a
commit
f2478e62a4
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue