You are here

public function ContextConditionContextEntityTextFieldTest::tearDown in Context entity field 7

Remove date created to run tests.

Overrides DrupalWebTestCase::tearDown

File

tests/context_entity_field.test, line 105
Test context condition.

Class

ContextConditionContextEntityTextFieldTest
Test context contition using text field.

Code

public function tearDown() {
  parent::tearDown();

  // Delete nodes.
  node_delete($this->nodes['body_empty']->nid);
  node_delete($this->nodes['body_test']->nid);
  node_delete($this->nodes['body_other']->nid);

  // Delete contexts.
  $this
    ->contextDelete('entity_text_field_empty');
  $this
    ->contextDelete('entity_text_field_all');
  $this
    ->contextDelete('entity_text_field_match');
}