Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 9 |
| MockFileTransfer | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 9 |
| factory | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getSettingsForm | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 7 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\system_test\MockFileTransfer. | |
| */ | |
| namespace Drupal\system_test; | |
| /** | |
| * Mock FileTransfer object to test the settings form functionality. | |
| */ | |
| 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; | |
| } | |
| } |