/**
	 * Test new KunenaForumTopicUser()
	 */
	public function testNew() {
		$admin = KunenaFactory::getUser('admin');
		list($count, $topics) = KunenaForumTopicHelper::getLatestTopics(false, 0, 1);
		self::$topic = reset($topics);
		$topicuser = new KunenaForumTopicUser(self::$topic->id, $admin);
		$this->assertInstanceOf('KunenaForumTopicUser', $topicuser);
		$this->assertFalse($topicuser->exists());
		$this->assertEquals(self::$topic->id, $topicuser->topic_id);
		$this->assertEquals($admin->userid, $topicuser->user_id);
	}
 /**
  * Test delete()
  *
  * @param KunenaForumTopicUser $topicuser
  * @depends testGetInstance
  */
 public function testDelete(KunenaForumTopicUser $topicuser)
 {
     $this->assertTrue($topicuser->delete());
     $this->assertFalse($topicuser->exists());
     self::$topic = null;
 }