You are here

function NodequeueAdministerTestCase::testNodequeueTableSort in Nodequeue 6.2

Same name and namespace in other branches
  1. 7.2 tests/nodequeue.test \NodequeueAdministerTestCase::testNodequeueTableSort()

File

tests/nodequeue.test, line 408
Tests for the Nodequeue module.

Class

NodequeueAdministerTestCase

Code

function testNodequeueTableSort() {
  $queue = $this
    ->createNodequeue(array(
    'page',
    'story',
  ), array(
    2,
  ));

  // create two subqueues
  nodequeue_add_subqueue($queue, 'Subqueue 1');
  nodequeue_add_subqueue($queue, 'Subqueue 2', 42);
  $this
    ->drupalGet('admin/content/nodequeue/' . $queue->qid . '/view');
  $this
    ->assertText('Subqueue 1', t('Subqueue 1 is present in subqueue table.'), t('Nodequeue'));
  $this
    ->assertText('Subqueue 2', t('Subqueue 1 is present in subqueue table.'), t('Nodequeue'));
}