You are here

public function ContextConditionContextEntityTaxonomyFieldTest::testTermSingleAllField in Context entity field 7

Check condition for 'all' setting.

File

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

Class

ContextConditionContextEntityTaxonomyFieldTest
Test context contition using taxonomy field.

Code

public function testTermSingleAllField() {
  $this
    ->drupalGet("node/" . $this->nodes['terms_empty']->nid);
  $this
    ->assertNoText("Active context: entity_term_field_all");
  $this
    ->drupalGet("node/" . $this->nodes['terms_apples']->nid);
  $this
    ->assertText("Active context: entity_term_field_all");
  $this
    ->drupalGet("node/" . $this->nodes['terms_oranges']->nid);
  $this
    ->assertText("Active context: entity_term_field_all");
  $this
    ->drupalGet("node/" . $this->nodes['terms_all']->nid);
  $this
    ->assertText("Active context: entity_term_field_all");
}