You are here

function GeshiFilterTest::tearDown in GeSHi Filter for syntax highlighting 6

Same name and namespace in other branches
  1. 5.2 tests/geshifilter.test \GeshiFilterTest::tearDown()

SimpleTest core method: code run after each and every test method.

Optional. You only need this if you have setup tasks.

Overrides DrupalWebTestCase::tearDown

File

./geshifilter.test, line 238
Tests for the GeSHi filter module.

Class

GeshiFilterTest

Code

function tearDown() {

  // log in as filter admin
  $this
    ->drupalGet('logout');
  $this
    ->drupalLogin($this->filter_admin_user);

  // remove input format
  $this
    ->drupalPost('admin/settings/filters/delete/' . $this->input_format_id, array(), t('Delete'));

  // Always call the tearDown() function from the parent class.
  parent::tearDown();
}