More donking with testing
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
class UserTest extends TestCase {
|
||||
|
||||
/**
|
||||
* Username is required
|
||||
*/
|
||||
|
||||
/*
|
||||
public function testUsernameIsRequired()
|
||||
{
|
||||
// Create a new User
|
||||
$user = new User;
|
||||
$user->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.");
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user