Beispiel #1
0
 public function testGetByGoogleId()
 {
     $u = new User($this->container);
     $this->assertNotFalse($u->create(array('username' => 'user1', 'password' => '123456', 'google_id' => '1234')));
     $this->assertNotFalse($u->create(array('username' => 'user2', 'password' => '123456', 'google_id' => '')));
     $this->assertNotEmpty($u->getByGoogleId('1234'));
     $this->assertEmpty($u->getByGoogleId(''));
 }