@@ -16,33 +16,33 @@ |
||
| 16 | 16 | |
| 17 | 17 | protected function setUp() |
| 18 | 18 | { |
| 19 | - if( !interface_exists( 'eZ\Publish\API\Repository\UserService' ) ) { |
|
| 20 | - $this->markTestSkipped( 'Install ezsystems/ezpublish-api first' ); |
|
| 19 | + if (!interface_exists('eZ\Publish\API\Repository\UserService')) { |
|
| 20 | + $this->markTestSkipped('Install ezsystems/ezpublish-api first'); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - $this->mock = $this->getMockBuilder( 'eZ\Publish\API\Repository\UserService' )->getMock(); |
|
| 23 | + $this->mock = $this->getMockBuilder('eZ\Publish\API\Repository\UserService')->getMock(); |
|
| 24 | 24 | $this->object = new \Aimeos\MShop\Context\Item\Ezpublish(); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | protected function tearDown() |
| 29 | 29 | { |
| 30 | - unset( $this->object, $this->mock ); |
|
| 30 | + unset($this->object, $this->mock); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | |
| 34 | 34 | public function testGetEzUserService() |
| 35 | 35 | { |
| 36 | - $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
|
| 36 | + $this->setExpectedException('\\Aimeos\\MShop\\Exception'); |
|
| 37 | 37 | $this->object->getEzUserService(); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | public function testSetEzUserService() |
| 42 | 42 | { |
| 43 | - $return = $this->object->setEzUserService( $this->mock ); |
|
| 43 | + $return = $this->object->setEzUserService($this->mock); |
|
| 44 | 44 | |
| 45 | - $this->assertSame( $this->mock, $this->object->getEzUserService() ); |
|
| 46 | - $this->assertInstanceOf( \Aimeos\MShop\Context\Item\Iface::class, $return ); |
|
| 45 | + $this->assertSame($this->mock, $this->object->getEzUserService()); |
|
| 46 | + $this->assertInstanceOf(\Aimeos\MShop\Context\Item\Iface::class, $return); |
|
| 47 | 47 | } |
| 48 | 48 | } |