Josegonzalez\Upload\Test\TestCase\File\Writer\DefaultWriterTest::testGetFilesystem PHP Method

testGetFilesystem() public method

public testGetFilesystem ( )
    public function testGetFilesystem()
    {
        $this->assertInstanceOf('League\\Flysystem\\FilesystemInterface', $this->writer->getFilesystem('field', []));
        $this->assertInstanceOf('League\\Flysystem\\FilesystemInterface', $this->writer->getFilesystem('field', ['key' => 'value']));
        $this->assertInstanceOf('League\\Flysystem\\FilesystemInterface', $this->writer->getFilesystem('field', ['filesystem' => ['adapter' => new NullAdapter()]]));
        $this->assertInstanceOf('League\\Flysystem\\FilesystemInterface', $this->writer->getFilesystem('field', ['filesystem' => ['adapter' => function () {
            return new NullAdapter();
        }]]));
    }