public function testVerifyEmail() { $fakeIdentity = new UserIdentity(null, null); $this->assertFalse($fakeIdentity->verifyEmail()); $fakeIdentity->setId(999); $this->assertFalse($fakeIdentity->verifyEmail()); $identity = UserIdentity::find(array('username' => 'neo')); $this->assertTrue($identity->verifyEmail()); }