public function MissingAdapterTest::test in Flysystem 3.x
Same name and namespace in other branches
- 8 tests/src/Unit/Flysystem/Adapter/MissingAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\MissingAdapterTest::test()
- 2.0.x tests/src/Unit/Flysystem/Adapter/MissingAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\MissingAdapterTest::test()
- 3.0.x tests/src/Unit/Flysystem/Adapter/MissingAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\MissingAdapterTest::test()
@covers \Drupal\flysystem\Flysystem\Adapter\MissingAdapter
File
- tests/
src/ Unit/ Flysystem/ Adapter/ MissingAdapterTest.php, line 18
Class
- MissingAdapterTest
- @coversDefaultClass \Drupal\flysystem\Flysystem\Adapter\MissingAdapter @group flysystem
Namespace
Drupal\Tests\flysystem\Unit\Flysystem\AdapterCode
public function test() {
$adapter = new MissingAdapter();
$this
->assertFalse($adapter
->copy('', ''));
$this
->assertFalse($adapter
->createDir('', new Config()));
$this
->assertFalse($adapter
->delete(''));
$this
->assertFalse($adapter
->deleteDir(''));
$this
->assertIsArray($adapter
->listContents(''));
$this
->assertFalse($adapter
->getMetadata(''));
$this
->assertFalse($adapter
->getMimetype(''));
$this
->assertFalse($adapter
->getSize(''));
$this
->assertFalse($adapter
->getTimestamp(''));
$this
->assertFalse($adapter
->getVisibility(''));
$this
->assertFalse($adapter
->has(''));
$this
->assertFalse($adapter
->setVisibility('', 'public'));
$this
->assertFalse($adapter
->update('', '', new Config()));
$this
->assertFalse($adapter
->updateStream('', NULL, new Config()));
$this
->assertFalse($adapter
->read(''));
$this
->assertFalse($adapter
->readStream(''));
$this
->assertFalse($adapter
->rename('', ''));
$this
->assertFalse($adapter
->write('', '', new Config()));
$this
->assertFalse($adapter
->writeStream('', NULL, new Config()));
}