Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function testGetProviderAccess() |
||
40 | { |
||
41 | if( !class_exists( '\League\Flysystem\Dropbox\DropboxAdapter' ) ) { |
||
42 | $this->markTestSkipped( 'Install Flysystem Dropbox adapter' ); |
||
43 | } |
||
44 | |||
45 | $config = array( |
||
46 | 'accesstoken' => 'test', |
||
47 | 'appsecret' => 'test', |
||
48 | ); |
||
49 | $object = new FlyDropbox( $config ); |
||
50 | $this->assertInstanceof( \Aimeos\Base\Filesystem\Iface::class, $object ); |
||
51 | |||
52 | $this->expectException( 'Exception' ); |
||
53 | $object->has( 'test' ); |
||
54 | } |
||
56 |