function TestFileTransfer::factory
Same name in other branches
- 7.x modules/simpletest/tests/filetransfer.test \TestFileTransfer::factory()
- 9 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::factory()
- 8.9.x core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::factory()
- 10 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::factory()
Overrides FileTransfer::factory
2 calls to TestFileTransfer::factory()
- FileTransferTest::setUp in core/
modules/ system/ tests/ src/ Unit/ FileTransfer/ FileTransferTest.php - FileTransferTest::setUp in core/
modules/ system/ tests/ src/ Functional/ FileTransfer/ FileTransferTest.php
File
-
core/
modules/ system/ tests/ src/ Functional/ FileTransfer/ TestFileTransfer.php, line 41
Class
- TestFileTransfer
- Mock FileTransfer object for test case.
Namespace
Drupal\Tests\system\Functional\FileTransferCode
public static function factory($jail, $settings) {
assert(is_array($settings));
return new TestFileTransfer($jail);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.