| 1 |
<?php |
<?php |
| 2 |
// $Id: field_ui.test,v 1.1 2009/11/02 03:41:58 webchick Exp $ |
// $Id: field_ui.test,v 1.2 2009/11/02 15:59:28 webchick Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 13 |
public static function getInfo() { |
public static function getInfo() { |
| 14 |
return array( |
return array( |
| 15 |
'name' => 'Field UI tests', |
'name' => 'Field UI tests', |
| 16 |
'description' => 'Test the filed UI functionality.', |
'description' => 'Test the field UI functionality.', |
| 17 |
'group' => 'Field UI', |
'group' => 'Field UI', |
| 18 |
); |
); |
| 19 |
} |
} |
| 87 |
$edit['_add_new_field[widget_type]'] = 'test_field_widget'; |
$edit['_add_new_field[widget_type]'] = 'test_field_widget'; |
| 88 |
$this->drupalPost('admin/structure/types/manage/' . $this->hyphen_type . '/fields', $edit, t('Save')); |
$this->drupalPost('admin/structure/types/manage/' . $this->hyphen_type . '/fields', $edit, t('Save')); |
| 89 |
|
|
| 90 |
$this->assertText(t('@label field settings', array('@label' => $this->field_label)), t('Field settings page was displayed.')); |
$this->assertRaw(t('These settings apply to the %label field everywhere it is used.', array('%label' => $this->field_label)), t('Field settings page was displayed.')); |
| 91 |
|
|
| 92 |
$this->drupalPost(NULL, array(), t('Save field settings')); |
$this->drupalPost(NULL, array(), t('Save field settings')); |
| 93 |
|
|