Adding to bookroot test to check node form pages.
authorJeff Miccolis
Wed, 27 Jan 2010 22:41:09 +0000 (22:41 +0000)
committerJeff Miccolis
Wed, 27 Jan 2010 22:41:09 +0000 (22:41 +0000)
tests/context.conditions.test

index a9bcd1d..7469f51 100644 (file)
@@ -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);
   }