コード例 #1
0
 /**
  * Remove all records from the table so future test can run without problems
  */
 public function tearDown()
 {
     $query = \OCP\DB::prepare('DELETE FROM `' . $this->conversationMapper->getTableName() . '`');
     $query->execute(array());
     $query = \OCP\DB::prepare('DELETE FROM `' . $this->userMapper->getTableName() . '`');
     $query->execute(array());
 }
コード例 #2
0
 /**
  * Remove all records from the table so future test can run without problems
  */
 public function tearDown()
 {
     $query = \OCP\DB::prepare('DELETE FROM `' . $this->pushMessageMapper->getTableName() . '`');
     $query->execute(array());
     $query = \OCP\DB::prepare('DELETE FROM `' . $this->userOnlineMapper->getTableName() . '`');
     $query->execute(array());
     $query = \OCP\DB::prepare('DELETE FROM `' . $this->userMapper->getTableName() . '`');
     $query->execute(array());
 }