function NodequeueManipulateAllTestCase::testNodequeueAccess in Nodequeue 6.2
File
- tests/
nodequeue.test, line 223 - Tests for the Nodequeue module.
Class
Code
function testNodequeueAccess() {
// create and populate a nodequeue not associated with any roles.
$queue = $this
->createNodequeue(array(
'page',
'story',
), array());
$node = $this
->drupalCreateNode(array(
'type' => 'story',
'promote' => 1,
));
// user should still have access to add nodes to the queue
$this
->drupalGet('node');
$this
->assertText('Add to ' . $queue->title, t('Nodequeue link present on front page.'), t('Nodequeue'));
// do we have access to the nodequeue tab on a node page?
$this
->drupalGet('node/' . $node->nid);
$this
->assertRaw('<a href="' . base_path() . 'node/1/nodequeue">Nodequeue', t('Nodequeue tab is present on node page.'), t('Nodequeue'));
}