summaryrefslogtreecommitdiff
path: root/modules/node/node.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 21:39:40 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 21:39:40 +0000
commit09f2d3266bffc78d12d8666e2b3202dedd2cfc8f (patch)
tree75788ec1fd4c0a5f33de976a012a3ae09e3976b7 /modules/node/node.test
parent88b1575eb1e61d98fda5c164800cb132a174282c (diff)
downloadbrdo-09f2d3266bffc78d12d8666e2b3202dedd2cfc8f.tar.gz
brdo-09f2d3266bffc78d12d8666e2b3202dedd2cfc8f.tar.bz2
#609152 by redndahead, bleen18 and jim0203: Ensure node filter page validates that there were rows selected. (with tests)
Diffstat (limited to 'modules/node/node.test')
-rw-r--r--modules/node/node.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/node/node.test b/modules/node/node.test
index 71a39801c..016ce5619 100644
--- a/modules/node/node.test
+++ b/modules/node/node.test
@@ -967,6 +967,9 @@ class NodeAdminTestCase extends DrupalWebTestCase {
* Create 3 nodes and test if they are listed on the node admistration page.
*/
function testNodeAdmin() {
+ $this->drupalPost('admin/content', array(), t('Update'));
+ $this->assertText(t('No items selected.'), t('Clicking update with no nodes displays error message on the node administration listing.'));
+
$node1 = $this->drupalCreateNode(array('type' => 'article', 'status' => 1));
$node2 = $this->drupalCreateNode(array('type' => 'article', 'status' => 0));
$node3 = $this->drupalCreateNode(array('type' => 'page'));
@@ -974,6 +977,9 @@ class NodeAdminTestCase extends DrupalWebTestCase {
$this->drupalGet('admin/content');
$this->assertText($node1->title[FIELD_LANGUAGE_NONE][0]['value'], t('Node appears on the node administration listing.'));
+ $this->drupalPost('admin/content', array(), t('Update'));
+ $this->assertText(t('No items selected.'), t('Clicking update with no selected nodes displays error message on the node administration listing.'));
+
// Filter the node listing by status.
$edit = array(
'filter' => 'status',