public function registerUser() { $user = new User(); $user->dni = '12345678'; $user->tipo = 'control'; $user->password = bcrypt('1234'); $user->save(); dd($user); }
public function testValidation() { $email = '*****@*****.**'; $password = Hash::make('password'); $user = new User(); $user->email = $email; $user->password =$password; $user->save(); // $pro = $this->tester->seeRecord('users', ['email' => $email, 'password' => $password]); }