class UpdateTestFileTransfer

Mocks a FileTransfer object to test the settings form functionality.

Hierarchy

Expanded class hierarchy of UpdateTestFileTransfer

1 string reference to 'UpdateTestFileTransfer'
update_test_filetransfer_info in drupal-7.x/modules/update/tests/update_test.module
Implements hook_filetransfer_info().

File

drupal-7.x/modules/update/tests/update_test.module, line 158
Module for testing Update Manager functionality.

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

Contains filters are case sensitive
Namesort descending Modifiers Type Description
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.