function NodeQueueTest::test_remove_node_from_queue_fails_lack_of_token in Nodequeue 5.2
File
- tests/
nodequeue.test, line 86
Class
- NodeQueueTest
- This class is used to test the randomchoice module with simpletest.
Code
function test_remove_node_from_queue_fails_lack_of_token() {
$nid_array = $this
->nodequeue_get_nids(1);
$new_nid = $nid_array[0];
$this
->login_nodequeue_user();
$html = $this
->drupalGet('http://localhost' . url('admin/content/nodequeue/1/remove/1/' . $new_nid));
$new_nid_array = $this
->nodequeue_get_nids(1);
$this
->assertEqual(count($nid_array), count($new_nid_array), '[nodequeue] Trying to remove a node with the wrong token should fail: %s');
}