private function nextUser() { $this->adminKuser = adminKuserPeer::retrieveByPK($this->curId); $this->assertNotNull($this->adminKuser, 'Admin kuser not found with id [' . $this->curId . ']'); $cLoginData = new Criteria(); $cLoginData->addAnd(UserLoginDataPeer::LOGIN_EMAIL, $this->adminKuser->getEmail()); $loginDatas = UserLoginDataPeer::doSelect($cLoginData); $this->assertEquals(1, count($loginDatas), 'Number of login datas found for id [' . $this->curId . ']'); $this->loginData = $loginDatas[0]; $cKuser = new Criteria(); $cKuser->addAnd(kuserPeer::LOGIN_DATA_ID, $this->loginData->getId()); $cKuser->addAnd(kuserPeer::PARTNER_ID, $this->adminKuser->getPartnerId()); $kusers = kuserPeer::doSelect($cKuser); $this->assertEquals(1, count($kusers), 'Number of kusers found for id [' . $this->curId . ']'); $this->kuser = $kusers[0]; return true; }