public function testGetGroupIdByName() { $this->testDb->createPlainTables(array('groups')); $this->testDb->insertData(array('groups')); $groupId = $this->userDao->getGroupIdByName('fossy'); assertThat($groupId, equalTo(2)); }