diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-05 19:22:58 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-05 19:22:58 +0000 |
commit | 831b2e0e103a5aa3f607bbfd3ac47899baef9842 (patch) | |
tree | 50beb291d28a0cd0ffacac513b4b2bb850aa6ff0 | |
parent | 10a5ba7132475e1dd3b68ac7cf1daa0598987a22 (diff) | |
download | brdo-831b2e0e103a5aa3f607bbfd3ac47899baef9842.tar.gz brdo-831b2e0e103a5aa3f607bbfd3ac47899baef9842.tar.bz2 |
- Rollback of last patch.
-rw-r--r-- | modules/node/node.module | 6 | ||||
-rw-r--r-- | modules/node/node.test | 28 |
2 files changed, 3 insertions, 31 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 68997c9f9..af28dd192 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -789,7 +789,7 @@ function node_type_set_defaults($info = array()) { * @param $hook * A string containing the name of the hook. * @return - * TRUE if the $hook exists in the node type of $node. + * TRUE iff the $hook exists in the node type of $node. */ function node_hook($node, $hook) { $base = node_type_get_base($node); @@ -2870,7 +2870,7 @@ function node_access_rebuild($batch_mode = FALSE) { } else { // Not using any node_access modules. Add the default grant. - db_insert('node_access') + db_insert('node_accesss') ->fields(array( 'nid' => 0, 'realm' => 'all', @@ -3392,7 +3392,7 @@ function node_requirements($phase) { $requirements['node_access'] = array( 'title' => $t('Node Access Permissions'), 'value' => $value, - 'description' => $description . ' ' . l('Rebuild permissions', 'admin/reports/status/rebuild'), + 'description' => $description . ' ' . l('Rebuild Permissions', 'admin/reports/status/rebuild'), ); return $requirements; } diff --git a/modules/node/node.test b/modules/node/node.test index df88bafcb..c478d2545 100644 --- a/modules/node/node.test +++ b/modules/node/node.test @@ -861,31 +861,3 @@ class NodeAccessRebuildTestCase extends DrupalWebTestCase { $this->assertText(t('Content permissions have been rebuilt.')); } } - -/** - * Rebuild the node_access table. - */ -class NodeAccessRebuildTestCase extends DrupalWebTestCase { - function getInfo() { - return array( - 'name' => t('Node access rebuild'), - 'description' => t('Ensures that node access rebuild functions work correctly.'), - 'group' => t('Node'), - ); - } - - function setUp() { - parent::setUp(); - - $web_user = $this->drupalCreateUser(array('administer site configuration', 'access administration pages', 'access site reports')); - $this->drupalLogin($web_user); - $this->web_user = $web_user; - } - - function testNodeAccessRebuild() { - $this->drupalGet('admin/reports/status'); - $this->clickLink(t('Rebuild permissions')); - $this->drupalPost(NULL, array(), t('Rebuild permissions')); - $this->assertText(t('Content permissions have been rebuilt.')); - } -} |