Files
snipe-it/tests/unit/UserTest.php
T
snipe 1f7e0a2893 Revert "More donking with testing"
This reverts commit 7f3ceea77b.

# Conflicts:
#	.travis.yml
2015-08-12 23:37:37 -07:00

35 lines
686 B
PHP

<?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.");
}
*/
}