| Conditions | 3 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function testGetProviderToken() |
||
| 27 | { |
||
| 28 | if( !class_exists( '\League\Flysystem\GridFS\GridFSAdapter' ) ) { |
||
| 29 | $this->markTestSkipped( 'Install Flysystem GridFS adapter' ); |
||
| 30 | } |
||
| 31 | |||
| 32 | if( !class_exists( '\MongoClient' ) ) { |
||
| 33 | $this->markTestSkipped( 'Install Mongo client extension' ); |
||
| 34 | } |
||
| 35 | |||
| 36 | $config = array( |
||
| 37 | 'dbname' => 'test', |
||
| 38 | ); |
||
| 39 | $object = new FlyGridfs( $config ); |
||
| 40 | $this->assertInstanceof( \Aimeos\Base\Filesystem\Iface::class, $object ); |
||
| 41 | |||
| 42 | $this->expectException( 'Aimeos\Base\Filesystem\Exception' ); |
||
| 43 | $object->has( 'test' ); |
||
| 44 | } |
||
| 46 |