class SystemTestFileTransfer

Mock FileTransfer object to test the settings form functionality.

Hierarchy

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 481

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

Title Sort descending Modifiers Object type Summary
SystemTestFileTransfer::factory public static function
SystemTestFileTransfer::getSettingsForm public function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.