function NodeQueueTest::test_move_node_to_back_fails_lack_of_token in Nodequeue 5.2
File
- tests/
nodequeue.test, line 271
Class
- NodeQueueTest
- This class is used to test the randomchoice module with simpletest.
Code
function test_move_node_to_back_fails_lack_of_token() {
$nid_array = $this
->nodequeue_get_nids(1);
$this
->login_nodequeue_user();
$html = $this
->drupalGet('http://localhost' . url('admin/content/nodequeue/1/back/1/1'));
$new_nid_array = $this
->nodequeue_get_nids(1);
$this
->assertEqual(count($nid_array), count($new_nid_array), '[nodequeue] After moving node to back without token the node count should not change: %s');
for ($i = 0; $i < count($nid_array); $i++) {
$this
->assertEqual($nid_array[$i], $new_nid_array[$i], '[nodequeue] After moving node to back without token the nodes should be in the same order: %s');
}
}