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