You are here

public function LocalTest::testCreateReturnsPlugin in Flysystem 8

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

@covers ::__construct @covers ::create

File

tests/src/Unit/Flysystem/LocalTest.php, line 59

Class

LocalTest
@coversDefaultClass \Drupal\flysystem\Flysystem\Local @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Flysystem

Code

public function testCreateReturnsPlugin() {
  $container = new ContainerBuilder();
  $settings = new Settings([]);
  $container
    ->set('settings', $settings);
  $configuration = [
    'root' => 'foo/bar',
  ];
  $this
    ->assertInstanceOf(Local::class, Local::create($container, $configuration, '', []));
}