You are here

public function ContextConditionContextEntityTaxonomyFieldTest::tearDown in Context entity field 7

Remove date created to run tests.

Overrides DrupalWebTestCase::tearDown

File

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

Class

ContextConditionContextEntityTaxonomyFieldTest
Test context contition using taxonomy field.

Code

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

  // Delete nodes.
  node_delete($this->nodes['terms_empty']->nid);
  node_delete($this->nodes['terms_apples']->nid);
  node_delete($this->nodes['terms_oranges']->nid);
  node_delete($this->nodes['terms_all']->nid);

  // Delete terms.
  taxonomy_term_delete($this->terms['apples']->tid);
  taxonomy_term_delete($this->terms['oranges']->tid);

  // Delete contexts.
  $this
    ->contextDelete('entity_term_field_empty');
  $this
    ->contextDelete('entity_term_field_all');
  $this
    ->contextDelete('entity_term_field_match');
}