You are here

public function CCKSelectOtherTest::tearDown in CCK Select Other 7.2

Same name and namespace in other branches
  1. 6 tests/cck_select_other.test \CCKSelectOtherTest::tearDown()
  2. 7 tests/cck_select_other.test \CCKSelectOtherTest::tearDown()

Implementation of tearDown() method

Overrides DrupalWebTestCase::tearDown

File

tests/cck_select_other.test, line 94
CCK Select Other Functional Tests

Class

CCKSelectOtherTest
This is a base class that other tests will rely on for standardized setUp(), and tearDown() methods.

Code

public function tearDown() {
  $this
    ->drupalLogin($this->web_user);
  $this
    ->drupalPost('node/' . $this->test_node->nid . '/delete', array(
    'confirm' => 1,
  ), 'Delete');
  $this
    ->drupalLogout();
  $this
    ->drupalLogin($this->admin_user);
  field_delete_field($this->test_field['field_name']);
  $this
    ->drupalLogout();
  $this->test_node = NULL;
  $this->test_field = NULL;
  $this->test_instance = NULL;
  $this->admin_user = NULL;
  $this->web_user = NULL;
  $this->options = NULL;
  parent::tearDown();
}