diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-06-10 07:53:36 -0700 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-06-10 07:53:36 -0700 |
commit | 0fca935794f69763ad81e941cd2f01126411e4ed (patch) | |
tree | b11ba8751b5d0f44d58cc6ad090a2b43f8887866 | |
parent | 36fb9a26d43749085dad66eb8192fd8ed63afa82 (diff) | |
download | brdo-0fca935794f69763ad81e941cd2f01126411e4ed.tar.gz brdo-0fca935794f69763ad81e941cd2f01126411e4ed.tar.bz2 |
Issue #1540094 by bdgreen, xjm, rootwork, dermario, killtheliterate, pesgyo, Noe_: Fix up documentation of node tests
-rw-r--r-- | modules/node/node.test | 59 |
1 files changed, 58 insertions, 1 deletions
diff --git a/modules/node/node.test b/modules/node/node.test index a93cca5b9..b1d78fa1d 100644 --- a/modules/node/node.test +++ b/modules/node/node.test @@ -153,7 +153,19 @@ class NodeLoadHooksTestCase extends DrupalWebTestCase { * Tests the node revision functionality. */ class NodeRevisionsTestCase extends DrupalWebTestCase { + + /** + * Nodes used by the test. + * + * @var array + */ protected $nodes; + + /** + * The revision messages for node revisions created in the test. + * + * @var array + */ protected $logs; public static function getInfo() { @@ -289,7 +301,19 @@ class NodeRevisionsTestCase extends DrupalWebTestCase { * Tests the node edit functionality. */ class PageEditTestCase extends DrupalWebTestCase { + + /** + * A user with permission to create and edit own page content. + * + * @var object + */ protected $web_user; + + /** + * A user with permission to bypass node access and administer nodes. + * + * @var object + */ protected $admin_user; public static function getInfo() { @@ -741,6 +765,9 @@ class NodeBlockTestCase extends DrupalWebTestCase { $this->drupalLogin($admin_user); } + /** + * Tests that the "Syndicate" block is shown when enabled. + */ function testSyndicateBlock() { // Set block title to confirm that the interface is available. $this->drupalPost('admin/structure/block/manage/node/syndicate/configure', array('title' => $this->randomName(8)), t('Save block')); @@ -1778,6 +1805,12 @@ class NodeAdminTestCase extends DrupalWebTestCase { * Tests node title functionality. */ class NodeTitleTestCase extends DrupalWebTestCase { + + /** + * A user with permission to create and edit content and to administer nodes. + * + * @var object + */ protected $admin_user; public static function getInfo() { @@ -2062,11 +2095,15 @@ class NodeQueryAlter extends DrupalWebTestCase { /** * User with permission to view content. + * + * @var object */ protected $accessUser; /** * User without permission to view content. + * + * @var object */ protected $noAccessUser; @@ -2261,11 +2298,15 @@ class NodeEntityFieldQueryAlter extends DrupalWebTestCase { /** * User with permission to view content. + * + * @var object */ protected $accessUser; /** * User without permission to view content. + * + * @var object */ protected $noAccessUser; @@ -2392,10 +2433,26 @@ class NodeTokenReplaceTestCase extends DrupalWebTestCase { * Tests user permissions for node revisions. */ class NodeRevisionPermissionsTestCase extends DrupalWebTestCase { + + /** + * Nodes used by the test. + * + * @var array + */ protected $node_revisions = array(); + + /** + * Users with different revision permission used by the test. + * + * @var array + */ protected $accounts = array(); - // Map revision permission names to node revision access ops. + /** + * Map revision permission names to node revision access ops. + * + * @var array + */ protected $map = array( 'view' => 'view revisions', 'update' => 'revert revisions', |