class UpdateTestFileTransfer
Mocks a FileTransfer object to test the settings form functionality.
Hierarchy
- class \UpdateTestFileTransfer
Expanded class hierarchy of UpdateTestFileTransfer
1 string reference to 'UpdateTestFileTransfer'
- update_test_filetransfer_info in modules/
update/ tests/ update_test.module - Implements hook_filetransfer_info().
File
-
modules/
update/ tests/ update_test.module, line 159
View source
class UpdateTestFileTransfer {
/**
* Returns an UpdateTestFileTransfer object.
*
* @return
* A new UpdateTestFileTransfer object.
*/
public static function factory() {
return new UpdateTestFileTransfer();
}
/**
* Returns a settings form with a text field to input a username.
*/
public function getSettingsForm() {
$form = array();
$form['udpate_test_username'] = array(
'#type' => 'textfield',
'#title' => t('Update Test Username'),
);
return $form;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
UpdateTestFileTransfer::factory | public static | function | Returns an UpdateTestFileTransfer object. |
UpdateTestFileTransfer::getSettingsForm | public | function | Returns a settings form with a text field to input a username. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.