summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/contextual/contextual.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/contextual/contextual.test b/modules/contextual/contextual.test
index a1b94cc08..79eedb86f 100644
--- a/modules/contextual/contextual.test
+++ b/modules/contextual/contextual.test
@@ -31,8 +31,10 @@ class ContextualDynamicContextTestCase extends DrupalWebTestCase {
* Tests contextual links on node lists with different permissions.
*/
function testNodeLinks() {
- // Promote nodes to the front page. One article node the user can edit, one
- // page node he can not edit and another article node he can edit.
+ // Create three nodes in the following order:
+ // - An article, which should be user-editable.
+ // - A page, which should not be user-editable.
+ // - A second article, which should also be user-editable.
$node1 = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1));
$node2 = $this->drupalCreateNode(array('type' => 'page', 'promote' => 1));
$node3 = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1));