MissingAdapterTest.php in Flysystem 8
File
tests/src/Unit/Flysystem/Adapter/MissingAdapterTest.php
View source
<?php
namespace Drupal\Tests\flysystem\Unit\Flysystem\Adapter;
use Drupal\Tests\UnitTestCase;
use Drupal\flysystem\Flysystem\Adapter\MissingAdapter;
use League\Flysystem\Config;
class MissingAdapterTest extends UnitTestCase {
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
->assertInternalType('array', $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()));
}
}