diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-16 23:57:33 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-16 23:57:33 +0000 |
commit | 574a2e47eea1bc8e2ea13240e407a32e4b728560 (patch) | |
tree | 7c124110e7e71df958fff50b2fb8e0832dd18204 /modules/node/node.test | |
parent | 18d22419f3da39ca4bf92f46d605a25957f311be (diff) | |
download | brdo-574a2e47eea1bc8e2ea13240e407a32e4b728560.tar.gz brdo-574a2e47eea1bc8e2ea13240e407a32e4b728560.tar.bz2 |
- Patch #345866 by alexanderpas, justinrandell, Dave Reid: remove from hook_block().
Diffstat (limited to 'modules/node/node.test')
-rw-r--r-- | modules/node/node.test | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/node/node.test b/modules/node/node.test index 2e8a94d92..ab2a25f87 100644 --- a/modules/node/node.test +++ b/modules/node/node.test @@ -507,3 +507,33 @@ class NodeTitleXSSTestCase extends DrupalWebTestCase { $this->assertNoRaw($xss, t('Harmful tags are escaped when editing a node.')); } } + +class NodeBlockTestCase extends DrupalWebTestCase { + function getInfo() { + return array( + 'name' => t('Block availability'), + 'description' => t('Check if the syndicate block is available.'), + 'group' => t('Node'), + ); + } + + function setUp() { + parent::setUp(); + + // Create and login user + $admin_user = $this->drupalCreateUser(array('administer blocks')); + $this->drupalLogin($admin_user); + } + + function testSearchFormBlock() { + // Set block title to confirm that the interface is availble. + $this->drupalPost('admin/build/block/configure/node/syndicate', array('title' => $this->randomName(8)), t('Save block')); + $this->assertText(t('The block configuration has been saved.'), t('Block configuration set.')); + + // Set the block to a region to confirm block is availble. + $edit = array(); + $edit['node_syndicate[region]'] = 'footer'; + $this->drupalPost('admin/build/block', $edit, t('Save blocks')); + $this->assertText(t('The block settings have been updated.'), t('Block successfully move to footer region.')); + } +} |