extract auth test fakes
This commit is contained in:
parent
ae07a6ff7c
commit
64acbfad60
6 changed files with 58 additions and 29 deletions
13
backend/tests/Fakes/FakeTokenGenerator.php
Normal file
13
backend/tests/Fakes/FakeTokenGenerator.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Fakes;
|
||||
|
||||
use App\Auth\TokenGenerator;
|
||||
|
||||
class FakeTokenGenerator implements TokenGenerator
|
||||
{
|
||||
public function generate(): string
|
||||
{
|
||||
return 'fake-token-123';
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue