test email signup flow
This commit is contained in:
parent
a95903ed05
commit
9945163a2f
12 changed files with 631 additions and 0 deletions
22
backend/tests/Fakes/FakeEmailFactory.php
Normal file
22
backend/tests/Fakes/FakeEmailFactory.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Fakes;
|
||||
|
||||
use App\Email\EmailFactory;
|
||||
|
||||
class FakeEmailFactory implements EmailFactory
|
||||
{
|
||||
private ?string $lastToken = null;
|
||||
|
||||
public function makeConfirmationEmail(string $token): string
|
||||
{
|
||||
$this->lastToken = $token;
|
||||
|
||||
return "confirm with {$token}";
|
||||
}
|
||||
|
||||
public function getLastToken(): ?string
|
||||
{
|
||||
return $this->lastToken;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue