| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: xmlsitemap_menu.test,v 1.1.2.2 2010/02/11 02:23:42 davereid Exp $ 3 4 /** 5 * @file 6 * Unit tests for the xmlsitemap_menu module. 7 */ 8 9 class XMLSitemapMenuFunctionalTest extends XMLSitemapTestHelper { 10 protected $normal_user; 11 protected $menu_items = array(); 12 13 public static function getInfo() { 14 return array( 15 'name' => 'XML sitemap menu', 16 'description' => 'Functional tests for the XML sitemap menu module.', 17 'group' => 'XML sitemap', 18 ); 19 } 20 21 function setUp() { 22 parent::setUp('xmlsitemap_menu', 'menu'); 23 24 $this->admin_user = $this->drupalCreateUser(array('administer menu', 'administer xmlsitemap')); 25 $this->normal_user = $this->drupalCreateUser(array('access content')); 26 } 27 28 function testMenuSettings() { 29 $this->drupalLogin($this->admin_user); 30 31 $edit = array( 32 'title' => $this->randomName(), 33 'menu_name' => drupal_strtolower($this->randomName()), 34 'xmlsitemap[status]' => '1', 35 'xmlsitemap[priority]' => '1.0', 36 ); 37 $this->drupalPost('admin/build/menu/add', $edit, 'Save'); 38 $menu = menu_load($edit['menu_name']); 39 40 $this->clickLink('Add item'); 41 $edit = array( 42 'menu[link_title]' => $this->randomName(), 43 'menu[link_path]' => 'node', 44 'xmlsitemap[status]' => 'default', 45 'xmlsitemap[priority]' => 'default', 46 ); 47 $this->drupalPost(NULL, $edit, 'Save'); 48 } 49 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |