class SystemTestFileTransfer in Drupal 7
Mock FileTransfer object to test the settings form functionality.
Hierarchy
- class \SystemTestFileTransfer
Expanded class hierarchy of SystemTestFileTransfer
1 string reference to 'SystemTestFileTransfer'
- system_test_filetransfer_info in modules/
simpletest/ tests/ system_test.module - Implements hook_filetransfer_info().
File
- modules/
simpletest/ tests/ system_test.module, line 436
View source
class SystemTestFileTransfer {
public static function factory() {
return new SystemTestFileTransfer();
}
public function getSettingsForm() {
$form = array();
$form['system_test_username'] = array(
'#type' => 'textfield',
'#title' => t('System Test Username'),
);
return $form;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SystemTestFileTransfer:: |
public static | function | ||
SystemTestFileTransfer:: |
public | function |