You are here

function NodeQueueTest::test_add_node_to_queue_fails_lack_of_token in Nodequeue 5.2

File

tests/nodequeue.test, line 52

Class

NodeQueueTest
This class is used to test the randomchoice module with simpletest.

Code

function test_add_node_to_queue_fails_lack_of_token() {
  $nid_array = $this
    ->nodequeue_get_nids(1);
  $new_nid = 7;
  while (FALSE !== array_search($new_nid, $nid_array)) {
    $new_nid++;
  }
  $this
    ->login_nodequeue_user();
  $html = $this
    ->drupalGet('http://localhost' . url('admin/content/nodequeue/1/add/1/' . $new_nid));
  $new_nid_array = $this
    ->nodequeue_get_nids(1);
  $this
    ->assertEqual(count($nid_array), count($new_nid_array), '[nodequeue] Trying to add a new node without a token should fail: %s');
}