function GeshiFilterTest::tearDown in GeSHi Filter for syntax highlighting 5.2
Same name and namespace in other branches
- 6 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 DrupalTestCase::tearDown
File
- tests/
geshifilter.test, line 97
Class
- GeshiFilterTest
- Unit tests for the GeSHi filter module.
Code
function tearDown() {
// log in as filter admin
$this
->drupalGet(url('logout', NULL, NULL, TRUE));
$this
->drupalLoginUser($this->filter_admin_user);
// remove input format
$this
->drupalPostRequest('admin/settings/filters/delete/' . $this->input_format_id, array(), t('Delete'));
// Always call the tearDown() function from the parent class.
parent::tearDown();
}