public function ContextConditionContextEntityTaxonomyFieldTest::testTermSingleEmptyField in Context entity field 7
Check condition for 'empty' setting.
File
- tests/
context_entity_field.test, line 382 - Test context condition.
Class
- ContextConditionContextEntityTaxonomyFieldTest
- Test context contition using taxonomy field.
Code
public function testTermSingleEmptyField() {
$this
->drupalGet("node/" . $this->nodes['terms_empty']->nid);
$this
->assertText("Active context: entity_term_field_empty");
$this
->drupalGet("node/" . $this->nodes['terms_apples']->nid);
$this
->assertNoText("Active context: entity_term_field_empty");
$this
->drupalGet("node/" . $this->nodes['terms_oranges']->nid);
$this
->assertNoText("Active context: entity_term_field_empty");
$this
->drupalGet("node/" . $this->nodes['terms_all']->nid);
$this
->assertNoText("Active context: entity_term_field_empty");
}