You are here

public function FtpTest::testEnsureReturnsErrors in Flysystem 8

Same name and namespace in other branches
  1. 3.x tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testEnsureReturnsErrors()
  2. 2.0.x tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testEnsureReturnsErrors()
  3. 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\Flysystem

Code

public function testEnsureReturnsErrors() {
  $plugin = new Ftp([]);
  $result = $plugin
    ->ensure();
  $this
    ->assertSame(1, count($result));
  $this
    ->assertSame(21, $result[0]['context']['%port']);
}