dont cast email to string, use new value method
This commit is contained in:
parent
099883a13d
commit
a65c9259fa
7 changed files with 12 additions and 7 deletions
|
|
@ -45,7 +45,7 @@ class AuthenticateUserTest extends TestCase
|
|||
));
|
||||
|
||||
$this->assertInstanceOf(User::class, $user);
|
||||
$this->assertEquals('test@test.com', (string) $user->getEmail());
|
||||
$this->assertEquals('test@test.com', $user->getEmail()->value());
|
||||
}
|
||||
|
||||
public function test_throws_bad_request_when_email_null(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue