You are here

public function CCKSelectOtherNumericFieldTest::tearDown in CCK Select Other 7.2

Implementation of tearDown() method

Overrides DrupalWebTestCase::tearDown

File

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

Class

CCKSelectOtherNumericFieldTest
Assert that select other field widget can be used with non-text fields.

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();
}