Fix unit test
This commit is contained in:
@@ -51,7 +51,6 @@ class UserTest extends Base
|
|||||||
{
|
{
|
||||||
$u = new User($this->container);
|
$u = new User($this->container);
|
||||||
$this->assertNotFalse($u->create(array('username' => 'user1', 'password' => '123456', 'gitlab_id' => '1234')));
|
$this->assertNotFalse($u->create(array('username' => 'user1', 'password' => '123456', 'gitlab_id' => '1234')));
|
||||||
$this->assertNotFalse($u->create(array('username' => 'user2', 'password' => '123456', 'gitlab_id' => '')));
|
|
||||||
|
|
||||||
$this->assertNotEmpty($u->getByGitlabId('1234'));
|
$this->assertNotEmpty($u->getByGitlabId('1234'));
|
||||||
$this->assertEmpty($u->getByGitlabId(''));
|
$this->assertEmpty($u->getByGitlabId(''));
|
||||||
|
|||||||
Reference in New Issue
Block a user