You are here

protected function UbercartFileTestCase::tearDown in Ubercart 7.3

Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

Overrides DrupalWebTestCase::tearDown

File

uc_file/tests/uc_file.test, line 108
File download product feature tests.

Class

UbercartFileTestCase
Tests the file download purchase functionality.

Code

protected function tearDown() {

  // Cleanup file download directory after test.
  drupal_unlink('sites/default/files/file-downloads/README.txt');
  drupal_rmdir('sites/default/files/file-downloads');
  parent::tearDown();
}