function NodeBlockTestCase::testSyndicateBlock

Tests that the "Syndicate" block is shown when enabled.

File

modules/node/node.test, line 858

Class

NodeBlockTestCase
Tests the availability of the syndicate block.

Code

function testSyndicateBlock() {
    // Set block title to confirm that the interface is available.
    $this->drupalPost('admin/structure/block/manage/node/syndicate/configure', array(
        'title' => $this->randomName(8),
    ), t('Save block'));
    $this->assertText(t('The block configuration has been saved.'), 'Block configuration set.');
    // Set the block to a region to confirm block is available.
    $edit = array();
    $edit['blocks[node_syndicate][region]'] = 'footer';
    $this->drupalPost('admin/structure/block', $edit, t('Save blocks'));
    $this->assertText(t('The block settings have been updated.'), 'Block successfully move to footer region.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.