Skip to content

Commit

Permalink
feat: adiciona using token para a facade fake
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgabrieloliveira committed Nov 3, 2023
1 parent a6aa9dc commit 2cdb7ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Fakes/CustomerApiFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@

class CustomerApiFake implements CustomerApiInterface
{
protected string $token;

public function __construct()
{
$this->token = fake()->uuid();
}

public function usingToken(string $token): self
{
$this->token = $token;
return $this;
}

public function create(Customer $customer): CreateCustomerResponse
{
return new CreateCustomerResponse();
Expand Down

0 comments on commit 2cdb7ba

Please sign in to comment.