You are here

public function MissingTest::test in Flysystem 2.0.x

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

@covers \Drupal\flysystem\Flysystem\Missing

File

tests/src/Unit/Flysystem/MissingTest.php, line 18

Class

MissingTest
@coversDefaultClass \Drupal\flysystem\Flysystem\Missing @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Flysystem

Code

public function test() {
  $plugin = new Missing([]);
  $this
    ->assertInstanceOf(MissingAdapter::class, $plugin
    ->getAdapter());
  $this
    ->assertTrue(is_array($plugin
    ->ensure()));
  $this
    ->assertSame(1, count($plugin
    ->ensure()));
  $this
    ->assertSame('', $plugin
    ->getExternalUrl('asdf'));
}