@@ -45,10 +45,10 @@ discard block |
||
| 45 | 45 | public function testGetItem() |
| 46 | 46 | { |
| 47 | 47 | $search = $this->object->createSearch(); |
| 48 | - $search->setSlice(0, 1); |
|
| 49 | - $results = $this->object->searchItems($search); |
|
| 48 | + $search->setSlice( 0, 1 ); |
|
| 49 | + $results = $this->object->searchItems( $search ); |
|
| 50 | 50 | |
| 51 | - if( ( $expected = reset($results) ) === false ) { |
|
| 51 | + if( ( $expected = reset( $results ) ) === false ) { |
|
| 52 | 52 | throw new \RuntimeException( 'No list type item found' ); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -66,14 +66,14 @@ discard block |
||
| 66 | 66 | public function testSaveUpdateDeleteItem() |
| 67 | 67 | { |
| 68 | 68 | $search = $this->object->createSearch(); |
| 69 | - $search->setSlice(0, 1); |
|
| 70 | - $results = $this->object->searchItems($search); |
|
| 69 | + $search->setSlice( 0, 1 ); |
|
| 70 | + $results = $this->object->searchItems( $search ); |
|
| 71 | 71 | |
| 72 | - if( ( $item = reset($results) ) === false ) { |
|
| 72 | + if( ( $item = reset( $results ) ) === false ) { |
|
| 73 | 73 | throw new \RuntimeException( 'No type item found' ); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - $item->setId(null); |
|
| 76 | + $item->setId( null ); |
|
| 77 | 77 | $item->setCode( 'unitTestInit' ); |
| 78 | 78 | $resultSaved = $this->object->saveItem( $item ); |
| 79 | 79 | $itemSaved = $this->object->getItem( $item->getId() ); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultSaved ); |
| 113 | 113 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultUpd ); |
| 114 | 114 | |
| 115 | - $this->setExpectedException('\\Aimeos\\MShop\\Exception'); |
|
| 115 | + $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
|
| 116 | 116 | $this->object->getItem( $itemSaved->getId() ); |
| 117 | 117 | } |
| 118 | 118 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | $expr[] = $search->compare( '==', 'customer.lists.type.editor', $this->editor ); |
| 136 | 136 | |
| 137 | 137 | $search->setConditions( $search->combine( '&&', $expr ) ); |
| 138 | - $search->setSlice(0, 1); |
|
| 138 | + $search->setSlice( 0, 1 ); |
|
| 139 | 139 | |
| 140 | 140 | $results = $this->object->searchItems( $search, [], $total ); |
| 141 | 141 | $this->assertEquals( 1, count( $results ) ); |
@@ -571,7 +571,7 @@ |
||
| 571 | 571 | } |
| 572 | 572 | catch( \Exception $e ) |
| 573 | 573 | { |
| 574 | - $dbm->release( $conn, $dbname ); |
|
| 574 | + $dbm->release( $conn, $dbname ); |
|
| 575 | 575 | throw $e; |
| 576 | 576 | } |
| 577 | 577 | |