summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/context.conditions.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/context.conditions.test b/tests/context.conditions.test
index a9bcd1d..7469f51 100644
--- a/tests/context.conditions.test
+++ b/tests/context.conditions.test
@@ -251,6 +251,16 @@ class ContextConditionBookroot extends DrupalWebTestCase {
$this->drupalGet("node/{$dummy_child->nid}");
$this->assertNoText('Active context: testcontext');
+ $this->drupalGet("node/{$book->nid}/edit");
+ $this->assertNoText('Active context: testcontext');
+
+ $context->conditions['bookroot']['options']['node_form'] = 1;
+ $saved = context_save($context);
+ $this->assertTrue($saved, "Context 'testcontext' saved.");
+
+ $this->drupalGet("node/{$book->nid}/edit");
+ $this->assertText('Active context: testcontext');
+
// Cleanup
context_delete($context);
}