Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
26 | public function testGetProviderRoot() |
||
27 | { |
||
28 | if( !class_exists( '\League\Flysystem\Phpcr\PhpcrAdapter' ) ) { |
||
29 | $this->markTestSkipped( 'Install Flysystem PHPCR adapter' ); |
||
30 | } |
||
31 | |||
32 | $config = array( |
||
33 | 'driver' => 'pdo_sqlite', |
||
34 | 'path' => '/tmp/fly_phpcr.db', |
||
35 | 'root' => '/', |
||
36 | ); |
||
37 | $object = new FlyPhpcr( $config ); |
||
38 | $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
||
39 | |||
40 | $this->setExpectedException( '\PHPCR\RepositoryException' ); |
||
41 | $object->has( 'test' ); |
||
42 | } |
||
43 | } |
||
44 |