More test suite coverage

This commit is contained in:
Dane Everitt
2017-09-26 22:16:26 -05:00
parent 8908a758ca
commit 774c9680a3
14 changed files with 373 additions and 46 deletions

View File

@@ -93,7 +93,7 @@ class UserCreationService
$this->connection->beginTransaction();
if (! isset($data['password']) || empty($data['password'])) {
$data['password'] = $this->hasher->make(str_random(30));
$token = $this->passwordService->generateReset($data['email']);
$token = $this->passwordService->handle($data['email']);
}
$user = $this->repository->create($data);