class MockFileTransfer in Zircon Profile 8
Same name in this branch
- 8 core/modules/system/tests/modules/system_test/src/MockFileTransfer.php \Drupal\system_test\MockFileTransfer
- 8 core/modules/update/tests/modules/update_test/src/MockFileTransfer.php \Drupal\update_test\MockFileTransfer
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/system_test/src/MockFileTransfer.php \Drupal\system_test\MockFileTransfer
Mock FileTransfer object to test the settings form functionality.
Hierarchy
- class \Drupal\system_test\MockFileTransfer
Expanded class hierarchy of MockFileTransfer
File
- core/
modules/ system/ tests/ modules/ system_test/ src/ MockFileTransfer.php, line 13 - Contains \Drupal\system_test\MockFileTransfer.
Namespace
Drupal\system_testView source
class MockFileTransfer {
/**
* Returns a Drupal\system_test\MockFileTransfer object.
*
* @return \Drupal\system_test\MockFileTransfer
* A new Drupal\system_test\MockFileTransfer object.
*/
public static function factory() {
return new MockFileTransfer();
}
/**
* Returns a settings form with a text field to input a username.
*/
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 |
---|---|---|---|---|
MockFileTransfer:: |
public static | function | Returns a Drupal\system_test\MockFileTransfer object. | |
MockFileTransfer:: |
public | function | Returns a settings form with a text field to input a username. |