public function testGetByGithubId() { $u = new User($this->container); $this->assertNotFalse($u->create(array('username' => 'user1', 'password' => '123456', 'github_id' => 'plop'))); $this->assertNotFalse($u->create(array('username' => 'user2', 'password' => '123456', 'github_id' => ''))); $this->assertNotEmpty($u->getByGithubId('plop')); $this->assertEmpty($u->getByGithubId('')); }