function SearchBlockTestCase::testSearchFormBlock
Archivo
- drupal-7.x/modules/search/search.test, line 600
- Tests for search.module.
Class
- SearchBlockTestCase
Código
function testSearchFormBlock() {
$this->drupalPost('admin/structure/block/manage/search/form/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[search_form][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.');
}