seed(); $this->seed(); $this->assertDatabaseHas('users', [ 'email' => 'user@example.com', ]); $this->assertDatabaseMissing('users', [ 'email' => 'user@example.com', 'password' => 'password', ]); $this->assertDatabaseCount('users', 1); $user = app(UserRepository::class)->findByCredentials( new EmailAddress('user@example.com'), 'password', ); $this->assertNotNull($user); } }