Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class FactoryTest extends \PHPUnit\Framework\TestCase |
||
13 | { |
||
14 | public function testCreateClient() |
||
15 | { |
||
16 | $context = \TestHelperJapi::getContext(); |
||
17 | |||
18 | $client = \Aimeos\Client\JsonApi\Site\Factory::create( $context, 'attribute' ); |
||
19 | $this->assertInstanceOf( \Aimeos\Client\JsonApi\Iface::class, $client ); |
||
20 | } |
||
21 | |||
22 | |||
23 | public function testCreateClientEmpty() |
||
29 | } |
||
30 | |||
31 | |||
32 | public function testCreateClientInvalidPath() |
||
33 | { |
||
34 | $context = \TestHelperJapi::getContext(); |
||
35 | |||
36 | $this->expectException( \Aimeos\Client\JsonApi\Exception::class ); |
||
37 | \Aimeos\Client\JsonApi\Site\Factory::create( $context, '%^' ); |
||
38 | } |
||
39 | |||
40 | |||
41 | public function testCreateClientInvalidName() |
||
47 | } |
||
48 | } |
||
49 |