
| Current Path : /var/www/html/rocksensor2/web/core/modules/system/tests/src/Unit/FileTransfer/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor2/web/core/modules/system/tests/src/Unit/FileTransfer/FileTransferTest.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\system\Unit\FileTransfer;
use Drupal\Tests\system\Functional\FileTransfer\MockTestConnection;
use Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer;
use Drupal\Tests\UnitTestCase;
/**
* @group FileTransfer
*/
class FileTransferTest extends UnitTestCase {
/**
* @var \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer
*/
protected TestFileTransfer $testConnection;
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->testConnection = TestFileTransfer::factory($this->root, []);
}
public function testFileTransferMagicMethods(): void {
// Test to ensure __get() preserves public access.
$this->assertInstanceOf(MockTestConnection::class, $this->testConnection->connection);
}
}