test email signup flow

This commit is contained in:
Yisroel Baum 2026-08-03 20:22:50 +03:00
parent a95903ed05
commit 9945163a2f
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
12 changed files with 631 additions and 0 deletions

View 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;
}
}