email = "name@example.com"; $user->password = "password"; $user->setHasher(new Cartalyst\Sentry\Hashing\BCryptHasher); // User should not save $this->assertFalse($user->save()); // Save the errors $errors = $user->errors()->all(); // There should be 1 error $this->assertCount(1, $errors); // The username error should be set $this->assertEquals($errors[0], "The username field is required."); } */ }