public function FtpTest::testEnsureReturnsErrors in Flysystem 3.x
Same name and namespace in other branches
- 8 tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testEnsureReturnsErrors()
- 2.0.x tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testEnsureReturnsErrors()
- 3.0.x tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testEnsureReturnsErrors()
@covers ::ensure
File
- tests/
src/ Unit/ Flysystem/ FtpTest.php, line 58
Class
- FtpTest
- @coversDefaultClass \Drupal\flysystem\Flysystem\Ftp @group flysystem
Namespace
Drupal\Tests\flysystem\Unit\FlysystemCode
public function testEnsureReturnsErrors() {
$plugin = new Ftp([]);
$result = $plugin
->ensure();
$this
->assertSame(1, count($result));
$this
->assertSame(21, $result[0]['context']['%port']);
}