示例#1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     require_once WCF_DIR . 'lib/data/contest/ContestEditor.class.php';
     $this->deleteArray[] = $this->user = $this->createUser();
     $this->deleteArray[] = $this->contest = ContestEditor::create($userID = $this->user->userID, $groupID = 0, $subject = __METHOD__ . ' subject', $message = __METHOD__ . ' message', $options = array());
 }
 protected function setUp()
 {
     parent::setUp();
     WCF::getDB()->sendQuery('TRUNCATE TABLE wcf' . WCF_N . '_user_notification_message');
     WCF::getDB()->sendQuery('TRUNCATE TABLE wcf' . WCF_N . '_user_notification');
 }