/** * Test getInstance() * * @param KunenaForumTopicUser $topicuser * @return KunenaForumTopicUser * @depends testCreate */ public function testGetInstance(KunenaForumTopicUser $topicuser) { $admin = KunenaFactory::getUser('admin'); $topicuser2 = KunenaForumTopicUser::getInstance($topicuser->topic_id, $admin->userid); $this->assertSame($topicuser, $topicuser2); return $topicuser; }