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