Ejemplo n.º 1
0
 public function testGetByGitlabId()
 {
     $u = new User($this->container);
     $this->assertNotFalse($u->create(array('username' => 'user1', 'password' => '123456', 'gitlab_id' => '1234')));
     $this->assertNotEmpty($u->getByGitlabId('1234'));
     $this->assertEmpty($u->getByGitlabId(''));
 }