public function ContextConditionContextEntityTextFieldTest::testTextSingleAllField in Context entity field 7
Check condition for 'all' setting.
File
- tests/
context_entity_field.test, line 192 - Test context condition.
Class
- ContextConditionContextEntityTextFieldTest
- Test context contition using text field.
Code
public function testTextSingleAllField() {
$this
->drupalGet("node/" . $this->nodes['body_empty']->nid);
$this
->assertNoText("Active context: entity_text_field_all");
$this
->drupalGet("node/" . $this->nodes['body_test']->nid);
$this
->assertText("Active context: entity_text_field_all");
$this
->drupalGet("node/" . $this->nodes['body_other']->nid);
$this
->assertText("Active context: entity_text_field_all");
}