function NodequeueAdministerTestCase::testNodequeueModifyLabel in Nodequeue 6.2
Same name and namespace in other branches
- 7.2 tests/nodequeue.test \NodequeueAdministerTestCase::testNodequeueModifyLabel()
File
- tests/
nodequeue.test, line 343 - Tests for the Nodequeue module.
Class
Code
function testNodequeueModifyLabel() {
$queue = $this
->createNodequeue(array(
'page',
'story',
), array(
2,
));
$nodes = $this
->populateNodequeue($queue->qid);
$nids = array_keys($nodes);
// modify the label of the nodequeue tab...
$edit = array(
'nodequeue_use_tab' => TRUE,
'nodequeue_tab_display_max' => TRUE,
'nodequeue_tab_name' => 'Nodequeue Test Label',
);
$this
->drupalPost('admin/content/nodequeue/settings', $edit, 'Save configuration');
// ...and make sure the new label shows up on the node page
$this
->drupalGet('node/' . $nids[0]);
$this
->assertRaw('<a href="' . base_path() . 'node/1/nodequeue">Nodequeue', t('Nodequeue tab label has been set.'), t('Nodequeue'));
}