File
- drupal/core/modules/node/lib/Drupal/node/Tests/NodeBlockTest.php, line 38
- Definition of Drupal\node\Tests\NodeBlockTest.
Class
- NodeBlockTest
- Tests the availability of the syndicate block.
Namespace
Drupal\node\Tests
Code
function testSyndicateBlock() {
$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.');
$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.');
}