| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class EzpublishTest extends \PHPUnit\Framework\TestCase |
||
| 13 | { |
||
| 14 | private $object; |
||
| 15 | |||
| 16 | |||
| 17 | protected function setUp() : void |
||
| 18 | { |
||
| 19 | if( !interface_exists( 'eZ\Publish\API\Repository\UserService' ) ) { |
||
| 20 | $this->markTestSkipped( 'Install ezsystems/ezpublish-api first' ); |
||
| 21 | } |
||
| 22 | |||
| 23 | $this->mock = $this->getMockBuilder( 'eZ\Publish\API\Repository\UserService' )->getMock(); |
||
|
|
|||
| 24 | $this->object = new \Aimeos\MShop\Context\Item\Ezpublish(); |
||
| 25 | } |
||
| 26 | |||
| 27 | |||
| 28 | protected function tearDown() : void |
||
| 29 | { |
||
| 30 | unset( $this->object, $this->mock ); |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | public function testGetEzUserService() |
||
| 35 | { |
||
| 36 | $this->expectException( '\\Aimeos\\MShop\\Exception' ); |
||
| 37 | $this->object->getEzUserService(); |
||
| 38 | } |
||
| 39 | |||
| 40 | |||
| 41 | public function testSetEzUserService() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |