You are here

public function ContextConditionContextEntityNoFieldTest::testTextSingleAllField in Context entity field 7

Check condition for 'all' setting.

File

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

Class

ContextConditionContextEntityNoFieldTest
Test context contition to entity without field.

Code

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