@@ -220,10 +220,10 @@ discard block |
||
| 220 | 220 | $expr[] = $search->compare( '==', 'customer.longitude', '10.0' ); |
| 221 | 221 | $expr[] = $search->compare( '==', 'customer.latitude', '50.0' ); |
| 222 | 222 | |
| 223 | - $param = ['text','default', $listItem->getRefId()]; |
|
| 223 | + $param = ['text', 'default', $listItem->getRefId()]; |
|
| 224 | 224 | $expr[] = $search->compare( '!=', $search->createFunction( 'customer:has', $param ), null ); |
| 225 | 225 | |
| 226 | - $param = ['text','default', 0]; |
|
| 226 | + $param = ['text', 'default', 0]; |
|
| 227 | 227 | $expr[] = $search->compare( '==', $search->createFunction( 'customer:has', $param ), null ); |
| 228 | 228 | |
| 229 | 229 | $param = ['newsletter', null, '1']; |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | $this->assertEquals( 2, count( $results ) ); |
| 300 | 300 | $this->assertEquals( 3, $total ); |
| 301 | 301 | |
| 302 | - foreach($results as $itemId => $item) { |
|
| 302 | + foreach( $results as $itemId => $item ) { |
|
| 303 | 303 | $this->assertEquals( $itemId, $item->getId() ); |
| 304 | 304 | } |
| 305 | 305 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | public function testGetItem() |
| 64 | 64 | { |
| 65 | 65 | $search = $this->object->createSearch(); |
| 66 | - $search->setSlice(0, 1); |
|
| 66 | + $search->setSlice( 0, 1 ); |
|
| 67 | 67 | $results = $this->object->searchItems( $search ); |
| 68 | 68 | |
| 69 | 69 | if( ( $item = reset( $results ) ) === false ) { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | public function testSaveUpdateDeleteItem() |
| 78 | 78 | { |
| 79 | 79 | $search = $this->object->createSearch(); |
| 80 | - $search->setSlice(0, 1); |
|
| 80 | + $search->setSlice( 0, 1 ); |
|
| 81 | 81 | $items = $this->object->searchItems( $search ); |
| 82 | 82 | |
| 83 | 83 | if( ( $item = reset( $items ) ) === false ) { |
@@ -108,12 +108,12 @@ discard block |
||
| 108 | 108 | $this->assertEquals( $item->getDateEnd(), $itemSaved->getDateEnd() ); |
| 109 | 109 | $this->assertEquals( $item->getPosition(), $itemSaved->getPosition() ); |
| 110 | 110 | $this->assertEquals( $this->editor, $itemSaved->getEditor() ); |
| 111 | - $this->assertStringStartsWith(date('Y-m-d', time()), $itemSaved->getTimeCreated()); |
|
| 112 | - $this->assertStringStartsWith(date('Y-m-d', time()), $itemSaved->getTimeModified()); |
|
| 111 | + $this->assertStringStartsWith( date( 'Y-m-d', time() ), $itemSaved->getTimeCreated() ); |
|
| 112 | + $this->assertStringStartsWith( date( 'Y-m-d', time() ), $itemSaved->getTimeModified() ); |
|
| 113 | 113 | |
| 114 | 114 | $this->assertEquals( $this->editor, $itemSaved->getEditor() ); |
| 115 | 115 | $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeCreated() ); |
| 116 | - $this->assertRegExp('/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() ); |
|
| 116 | + $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() ); |
|
| 117 | 117 | |
| 118 | 118 | $this->assertEquals( $itemExp->getId(), $itemUpd->getId() ); |
| 119 | 119 | $this->assertEquals( $itemExp->getSiteId(), $itemUpd->getSiteId() ); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultSaved ); |
| 133 | 133 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultUpd ); |
| 134 | 134 | |
| 135 | - $this->setExpectedException('\\Aimeos\\MShop\\Exception'); |
|
| 135 | + $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
|
| 136 | 136 | $this->object->getItem( $itemSaved->getId() ); |
| 137 | 137 | } |
| 138 | 138 | |
@@ -278,8 +278,8 @@ discard block |
||
| 278 | 278 | |
| 279 | 279 | public function testGetSubManager() |
| 280 | 280 | { |
| 281 | - $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type') ); |
|
| 282 | - $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type', 'Standard') ); |
|
| 281 | + $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type' ) ); |
|
| 282 | + $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type', 'Standard' ) ); |
|
| 283 | 283 | |
| 284 | 284 | $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
| 285 | 285 | $this->object->getSubManager( 'unknown' ); |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * @copyright Aimeos (aimeos.org), 2014-2018 |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -return array ( |
|
| 8 | +return array( |
|
| 9 | 9 | 'customer/lists/type' => array( |
| 10 | 10 | 'customer/group/default' => array( 'domain' => 'customer/group', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
| 11 | 11 | 'order/download' => array( 'domain' => 'order', 'code' => 'download', 'label' => 'Download', 'status' => 1 ), |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * @copyright Aimeos (aimeos.org), 2014-2018 |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -return array ( |
|
| 8 | +return array( |
|
| 9 | 9 | 'customer' => array( |
| 10 | 10 | 'customer/UTC001' => array( 'label' => 'unitCustomer001', 'code' => 'UTC001', 'status' => 1, 'company' => 'Example company', 'vatid' => 'DE999999999', 'salutation' => 'mr', 'title' => 'Dr', 'firstname' => 'Our', 'lastname' => 'Unittest', 'address1' => 'Pickhuben', 'address2' => '2-4', 'address3' => '', 'postal' => '20457', 'city' => 'Hamburg', 'state' => 'Hamburg', 'countryid' => 'DE', 'langid' => 'de', 'telephone' => '055544332211', 'email' => '[email protected]', 'telefax' => '055544332212', 'website' => 'www.example.com', 'longitude' => '10.0', 'latitude' => '50.0', 'password' => 'unittest' ), |
| 11 | 11 | 'customer/UTC002' => array( 'label' => 'unitCustomer002', 'code' => 'UTC002', 'status' => 1, 'company' => '', 'vatid' => '', 'salutation' => '', 'title' => '', 'firstname' => '', 'lastname' => '', 'address1' => '', 'address2' => '', 'address3' => '', 'postal' => '', 'city' => '', 'state' => '', 'countryid' => null, 'langid' => 'de', 'telephone' => '', 'email' => '[email protected]', 'telefax' => '', 'website' => '', 'longitude' => '', 'latitude' => '' ), |