function NodeQueueTest::test_add_node_to_queue_fails_bad_token in Nodequeue 5.2
File
- tests/
nodequeue.test, line 69
Class
- NodeQueueTest
- This class is used to test the randomchoice module with simpletest.
Code
function test_add_node_to_queue_fails_bad_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, 'token=e0daddc84e8b94e57b805bbc23cb7dcf'));
$new_nid_array = $this
->nodequeue_get_nids(1);
$this
->assertEqual(count($nid_array), count($new_nid_array), '[nodequeue] Trying to add a new node with the wrong token should fail: %s');
}