public function tearDown()
 {
     // TODO Why is this needed for last tests?
     $this->_deleteAllRecords();
     // By construction, cached files aren't deleted when plugin is removed.
     $this->_removeCachedFiles();
     parent::tearDown();
 }
    /**
     * Clear testing records. This needs to be done manually since the records
     * table is MyISAM (for spatial/fulltext indexes), and doesn't get cleared
     * with the rest of the tables when the transaction is rolled back.
     */
    public function tearDown()
    {
        $this->db->query(<<<SQL
        DELETE FROM {$this->db->prefix}neatline_records WHERE 1=1
SQL
);
        parent::tearDown();
    }
 /**
  * Clear the Solr index.
  */
 public function tearDown()
 {
     try {
         SolrSearch_Helpers_Index::deleteAll();
     } catch (Exception $e) {
     }
     parent::tearDown();
 }
Exemple #4
0
 public function tearDown()
 {
     release_object($this->super);
     release_object($this->admin);
     parent::tearDown();
 }
Exemple #5
0
 public function tearDown()
 {
     release_object($this->_users);
     release_object($this->_items);
     parent::tearDown();
 }
 /**
  * Tears down after each test.
  *
  * @return void
  * @author Eric Rochester <*****@*****.**>
  **/
 public function tearDown()
 {
     parent::tearDown();
     foreach ($this->_todel as $todel) {
         try {
             $todel->delete();
         } catch (Exception $e) {
         }
     }
     $this->_todel = array();
     $this->_item = null;
 }