You are here

public function FtpTest::testGetAdapterFails in Flysystem 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testGetAdapterFails()
  2. 3.x tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testGetAdapterFails()
  3. 3.0.x tests/src/Unit/Flysystem/FtpTest.php \Drupal\Tests\flysystem\Unit\Flysystem\FtpTest::testGetAdapterFails()

@covers ::getAdapter @covers ::__construct

File

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

Class

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

Namespace

Drupal\Tests\flysystem\Unit\Flysystem

Code

public function testGetAdapterFails() {
  $plugin = new Ftp([]);
  $this
    ->assertInstanceOf(MissingAdapter::class, $plugin
    ->getAdapter());
}