You are here

public function ContextConditionContextEntityTextFieldTest::testTextSingleEmptyField in Context entity field 7

Check context for 'empty' setting.

File

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

Class

ContextConditionContextEntityTextFieldTest
Test context contition using text field.

Code

public function testTextSingleEmptyField() {
  $this
    ->drupalGet("node/" . $this->nodes['body_empty']->nid);
  $this
    ->assertText("Active context: entity_text_field_empty");
  $this
    ->drupalGet("node/" . $this->nodes['body_test']->nid);
  $this
    ->assertNoText("Active context: entity_text_field_empty");
  $this
    ->drupalGet("node/" . $this->nodes['body_other']->nid);
  $this
    ->assertNoText("Active context: entity_text_field_empty");
}