public function ContextConditionContextEntityNoFieldTest::tearDown in Context entity field 7
Remove date created to run tests.
Overrides DrupalWebTestCase::tearDown
File
- tests/
context_entity_field.test, line 466 - Test context condition.
Class
- ContextConditionContextEntityNoFieldTest
- Test context contition to entity without 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');
}