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