You are here

public function FtpTest::testGetAdapterSuccess 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::testGetAdapterSuccess()
  2. 2.0.x tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testGetAdapterSuccess()
  3. 3.0.x tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testGetAdapterSuccess()

@covers ::getAdapter @covers ::__construct

File

tests/src/Unit/Flysystem/FtpTest.php, line 31

Class

FtpTest
@coversDefaultClass \Drupal\flysystem\Flysystem\Ftp @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Flysystem

Code

public function testGetAdapterSuccess() {
  $plugin = new Ftp([
    'host' => 'success',
  ]);
  $this
    ->assertInstanceOf(LeagueFtp::class, $plugin
    ->getAdapter());
}