You are here

public function ContextConditionContextEntityNoFieldTest::testTextSingleEmptyField in Context entity field 7

Check context for 'empty' setting.

File

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

Class

ContextConditionContextEntityNoFieldTest
Test context contition to entity without field.

Code

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