protected function ContextConditionContextEntityFieldTest::contextDelete in Context entity field 7
Helper method to delete context.
Parameters
string $name: Machine name of context to delete
3 calls to ContextConditionContextEntityFieldTest::contextDelete()
- ContextConditionContextEntityNoFieldTest::tearDown in tests/
context_entity_field.test - Remove date created to run tests.
- ContextConditionContextEntityTaxonomyFieldTest::tearDown in tests/
context_entity_field.test - Remove date created to run tests.
- ContextConditionContextEntityTextFieldTest::tearDown in tests/
context_entity_field.test - Remove date created to run tests.
File
- tests/
context_entity_field.test, line 64 - Test context condition.
Class
- ContextConditionContextEntityFieldTest
- Basic test definition.
Code
protected function contextDelete($name) {
$context = context_load($name);
context_delete($context);
}