@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'users' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'users' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'users' ); |
14 | 14 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $table->addColumn( 'status', 'smallint', array( 'default' => 1 ) ); |
45 | 45 | $table->addColumn( 'updated_at', 'datetime', [] ); |
46 | 46 | $table->addColumn( 'created_at', 'datetime', [] ); |
47 | - $table->addColumn( 'editor', 'string', array('length' => 255, 'default' => '' ) ); |
|
47 | + $table->addColumn( 'editor', 'string', array( 'length' => 255, 'default' => '' ) ); |
|
48 | 48 | |
49 | 49 | $table->setPrimaryKey( array( 'id' ), 'pk_lvusr_id' ); |
50 | 50 | $table->addUniqueIndex( array( 'email' ), 'unq_lvusr_email' ); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | return $schema; |
60 | 60 | }, |
61 | 61 | |
62 | - 'users_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
62 | + 'users_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
63 | 63 | |
64 | 64 | $table = $schema->createTable( 'users_address' ); |
65 | 65 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $table->addColumn( 'latitude', 'float', array( 'notnull' => false ) ); |
90 | 90 | $table->addColumn( 'mtime', 'datetime', [] ); |
91 | 91 | $table->addColumn( 'ctime', 'datetime', [] ); |
92 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
92 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
93 | 93 | |
94 | 94 | $table->setPrimaryKey( array( 'id' ), 'pk_lvuad_id' ); |
95 | 95 | $table->addIndex( array( 'parentid' ), 'idx_lvuad_pid' ); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | return $schema; |
107 | 107 | }, |
108 | 108 | |
109 | - 'users_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
109 | + 'users_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
110 | 110 | |
111 | 111 | $table = $schema->createTable( 'users_list_type' ); |
112 | 112 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | return $schema; |
131 | 131 | }, |
132 | 132 | |
133 | - 'users_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
133 | + 'users_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
134 | 134 | |
135 | 135 | $table = $schema->createTable( 'users_list' ); |
136 | 136 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | return $schema; |
160 | 160 | }, |
161 | 161 | |
162 | - 'users_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
162 | + 'users_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
163 | 163 | |
164 | 164 | $table = $schema->createTable( 'users_property_type' ); |
165 | 165 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | return $schema; |
184 | 184 | }, |
185 | 185 | |
186 | - 'users_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
186 | + 'users_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
187 | 187 | |
188 | 188 | $table = $schema->createTable( 'users_property' ); |
189 | 189 |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2014-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -return array ( |
|
9 | - 'customer/lists/type' => array ( |
|
8 | +return array( |
|
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 ), |
12 | 12 | 'product/favorite' => array( 'domain' => 'product', 'code' => 'favorite', 'label' => 'Favorite', 'status' => 1 ), |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | 'text/default' => array( 'domain' => 'text', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
15 | 15 | ), |
16 | 16 | |
17 | - 'customer/lists' => array ( |
|
17 | + 'customer/lists' => array( |
|
18 | 18 | array( 'parentid' => 'customer/UTC003', 'type' => 'default', 'domain' => 'text', 'refid' => 'text/customer/information', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 1, 'status' => 1 ), |
19 | 19 | array( 'parentid' => 'customer/UTC003', 'type' => 'default', 'domain' => 'text', 'refid' => 'text/customer/notify', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 2, 'status' => 1 ), |
20 | 20 | array( 'parentid' => 'customer/UTC003', 'type' => 'default', 'domain' => 'text', 'refid' => 'text/customer/newsletter', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 3, 'status' => 1 ), |
@@ -5,10 +5,10 @@ |
||
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( 'code' => 'UTC001', 'label' => 'unitCustomer1', 'salutation' => 'mr', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'title' => 'Dr.', 'firstname' => 'Max', 'lastname' => 'Mustermann', 'address1' => 'Musterstraße', 'address2' => '1a', 'address3' => '', 'postal' => '20001', 'city' => 'Musterstadt', 'state' => 'Hamburg', 'langid' => 'de', 'countryid' => 'DE', 'telephone' => '01234567890', 'email' => '[email protected]', 'telefax' => '01234567890', 'website' => 'unittest.aimeos.org', 'longitude' => '10.0', 'latitude' => '50.0', 'birthday' => '1970-01-01', 'status' => '1', 'password' => 'test' ), |
11 | - 'customer/UTC002' => array( 'code' => 'UTC002', 'label' => 'unitCustomer2', 'salutation' => 'mrs', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'title' => 'Prof. Dr.', 'firstname' => 'Erika', 'lastname' => 'Mustermann', 'address1' => 'Heidestraße', 'address2' => '17', 'address3' => '', 'postal' => '45632', 'city' => 'Köln', 'state' => '', 'langid' => 'de', 'countryid' => 'DE', 'telephone' => '09876543210', 'email' => '[email protected]', 'telefax' => '09876543210', 'website' => 'unittest.aimeos.org', 'longitude' => '10.5', 'latitude' => '51.0', 'birthday' => '1970-01-01', 'status' => '0','password' => 'test' ), |
|
11 | + 'customer/UTC002' => array( 'code' => 'UTC002', 'label' => 'unitCustomer2', 'salutation' => 'mrs', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'title' => 'Prof. Dr.', 'firstname' => 'Erika', 'lastname' => 'Mustermann', 'address1' => 'Heidestraße', 'address2' => '17', 'address3' => '', 'postal' => '45632', 'city' => 'Köln', 'state' => '', 'langid' => 'de', 'countryid' => 'DE', 'telephone' => '09876543210', 'email' => '[email protected]', 'telefax' => '09876543210', 'website' => 'unittest.aimeos.org', 'longitude' => '10.5', 'latitude' => '51.0', 'birthday' => '1970-01-01', 'status' => '0', 'password' => 'test' ), |
|
12 | 12 | 'customer/UTC003' => array( 'code' => 'UTC003', 'label' => 'unitCustomer3', 'salutation' => 'mr', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'title' => '', 'firstname' => 'Franz-Xaver', 'lastname' => 'Gabler', 'address1' => 'Phantasiestraße', 'address2' => '2', 'address3' => '', 'postal' => '23643', 'city' => 'Berlin', 'state' => 'Berlin', 'langid' => 'de', 'countryid' => 'DE', 'telephone' => '01234509876', 'email' => '[email protected]', 'telefax' => '055544333212', 'website' => 'unittest.aimeos.org', 'longitude' => '11.0', 'latitude' => '52.0', 'birthday' => '1970-01-01', 'status' => '1', 'password' => 'test' ), |
13 | 13 | ), |
14 | 14 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2018 |
6 | 6 | */ |
7 | 7 | |
8 | -return array ( |
|
8 | +return array( |
|
9 | 9 | 'customer/property/type' => array( |
10 | 10 | 'customer/property/type/newsletter' => array( 'domain' => 'customer', 'code' => 'newsletter', 'label' => 'Newsletter', 'status' => 1 ), |
11 | 11 | ), |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $ds = DIRECTORY_SEPARATOR; |
40 | 40 | $path = __DIR__ . $ds . 'data' . $ds . 'customer.php'; |
41 | 41 | |
42 | - if( ( $testdata = include( $path ) ) == false ){ |
|
42 | + if( ( $testdata = include( $path ) ) == false ) { |
|
43 | 43 | throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for customer domain', $path ) ); |
44 | 44 | } |
45 | 45 |
@@ -39,13 +39,13 @@ |
||
39 | 39 | $ds = DIRECTORY_SEPARATOR; |
40 | 40 | $path = __DIR__ . $ds . 'data' . $ds . 'customer-list.php'; |
41 | 41 | |
42 | - if( ( $testdata = include( $path ) ) == false ){ |
|
42 | + if( ( $testdata = include( $path ) ) == false ) { |
|
43 | 43 | throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for customer list domain', $path ) ); |
44 | 44 | } |
45 | 45 | |
46 | 46 | $refKeys = []; |
47 | 47 | foreach( $testdata['customer/lists'] as $dataset ) { |
48 | - $refKeys[ $dataset['domain'] ][] = $dataset['refid']; |
|
48 | + $refKeys[$dataset['domain']][] = $dataset['refid']; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | $refIds = []; |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function testGetItem() |
62 | 62 | { |
63 | 63 | $search = $this->object->createSearch(); |
64 | - $search->setSlice(0, 1); |
|
64 | + $search->setSlice( 0, 1 ); |
|
65 | 65 | $results = $this->object->searchItems( $search ); |
66 | 66 | |
67 | 67 | if( ( $item = reset( $results ) ) === false ) { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | public function testSaveUpdateDeleteItem() |
76 | 76 | { |
77 | 77 | $search = $this->object->createSearch(); |
78 | - $search->setSlice(0, 1); |
|
78 | + $search->setSlice( 0, 1 ); |
|
79 | 79 | $items = $this->object->searchItems( $search ); |
80 | 80 | |
81 | 81 | if( ( $item = reset( $items ) ) === false ) { |
@@ -106,12 +106,12 @@ discard block |
||
106 | 106 | $this->assertEquals( $item->getDateEnd(), $itemSaved->getDateEnd() ); |
107 | 107 | $this->assertEquals( $item->getPosition(), $itemSaved->getPosition() ); |
108 | 108 | $this->assertEquals( $this->editor, $itemSaved->getEditor() ); |
109 | - $this->assertStringStartsWith(date('Y-m-d', time()), $itemSaved->getTimeCreated()); |
|
110 | - $this->assertStringStartsWith(date('Y-m-d', time()), $itemSaved->getTimeModified()); |
|
109 | + $this->assertStringStartsWith( date( 'Y-m-d', time() ), $itemSaved->getTimeCreated() ); |
|
110 | + $this->assertStringStartsWith( date( 'Y-m-d', time() ), $itemSaved->getTimeModified() ); |
|
111 | 111 | |
112 | 112 | $this->assertEquals( $this->editor, $itemSaved->getEditor() ); |
113 | 113 | $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeCreated() ); |
114 | - $this->assertRegExp('/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() ); |
|
114 | + $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() ); |
|
115 | 115 | |
116 | 116 | $this->assertEquals( $itemExp->getId(), $itemUpd->getId() ); |
117 | 117 | $this->assertEquals( $itemExp->getSiteId(), $itemUpd->getSiteId() ); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultSaved ); |
131 | 131 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultUpd ); |
132 | 132 | |
133 | - $this->setExpectedException('\\Aimeos\\MShop\\Exception'); |
|
133 | + $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
|
134 | 134 | $this->object->getItem( $itemSaved->getId() ); |
135 | 135 | } |
136 | 136 | |
@@ -240,12 +240,12 @@ discard block |
||
240 | 240 | $expr[] = $search->compare( '==', 'customer.lists.editor', $this->editor ); |
241 | 241 | |
242 | 242 | $search->setConditions( $search->combine( '&&', $expr ) ); |
243 | - $search->setSlice(0, 1); |
|
243 | + $search->setSlice( 0, 1 ); |
|
244 | 244 | $results = $this->object->searchItems( $search, [], $total ); |
245 | 245 | $this->assertEquals( 1, count( $results ) ); |
246 | 246 | $this->assertEquals( 2, $total ); |
247 | 247 | |
248 | - foreach($results as $itemId => $item) { |
|
248 | + foreach( $results as $itemId => $item ) { |
|
249 | 249 | $this->assertEquals( $itemId, $item->getId() ); |
250 | 250 | } |
251 | 251 | } |
@@ -255,26 +255,26 @@ discard block |
||
255 | 255 | { |
256 | 256 | $search = $this->object->createSearch(); |
257 | 257 | $search->setConditions( $search->compare( '==', 'customer.lists.editor', $this->editor ) ); |
258 | - $this->assertEquals( 4, count( $this->object->searchItems($search) ) ); |
|
258 | + $this->assertEquals( 4, count( $this->object->searchItems( $search ) ) ); |
|
259 | 259 | } |
260 | 260 | |
261 | 261 | |
262 | 262 | public function testSearchItemsBaseCriteria() |
263 | 263 | { |
264 | - $search = $this->object->createSearch(true); |
|
264 | + $search = $this->object->createSearch( true ); |
|
265 | 265 | $conditions = array( |
266 | 266 | $search->compare( '==', 'customer.lists.editor', $this->editor ), |
267 | 267 | $search->getConditions() |
268 | 268 | ); |
269 | 269 | $search->setConditions( $search->combine( '&&', $conditions ) ); |
270 | - $this->assertEquals( 4, count( $this->object->searchItems($search) ) ); |
|
270 | + $this->assertEquals( 4, count( $this->object->searchItems( $search ) ) ); |
|
271 | 271 | } |
272 | 272 | |
273 | 273 | |
274 | 274 | public function testGetSubManager() |
275 | 275 | { |
276 | - $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type') ); |
|
277 | - $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type', 'Standard') ); |
|
276 | + $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type' ) ); |
|
277 | + $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type', 'Standard' ) ); |
|
278 | 278 | |
279 | 279 | $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
280 | 280 | $this->object->getSubManager( 'unknown' ); |
@@ -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,13 +135,13 @@ 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 ) ); |
142 | 142 | $this->assertEquals( 1, $total ); |
143 | 143 | |
144 | - foreach($results as $itemId => $item) { |
|
144 | + foreach( $results as $itemId => $item ) { |
|
145 | 145 | $this->assertEquals( $itemId, $item->getId() ); |
146 | 146 | } |
147 | 147 | } |
@@ -126,56 +126,56 @@ discard block |
||
126 | 126 | |
127 | 127 | $this->assertTrue( $item->getId() !== null ); |
128 | 128 | $this->assertEquals( $item->getId(), $itemSaved->getId() ); |
129 | - $this->assertEquals( $item->getParentId(), $itemSaved->getParentId()); |
|
130 | - $this->assertEquals( $item->getPosition(), $itemSaved->getPosition()); |
|
131 | - $this->assertEquals( $item->getCompany(), $itemSaved->getCompany()); |
|
132 | - $this->assertEquals( $item->getVatID(), $itemSaved->getVatID()); |
|
133 | - $this->assertEquals( $item->getSalutation(), $itemSaved->getSalutation()); |
|
134 | - $this->assertEquals( $item->getTitle(), $itemSaved->getTitle()); |
|
135 | - $this->assertEquals( $item->getFirstname(), $itemSaved->getFirstname()); |
|
136 | - $this->assertEquals( $item->getLastname(), $itemSaved->getLastname()); |
|
137 | - $this->assertEquals( $item->getAddress1(), $itemSaved->getAddress1()); |
|
138 | - $this->assertEquals( $item->getAddress2(), $itemSaved->getAddress2()); |
|
139 | - $this->assertEquals( $item->getAddress3(), $itemSaved->getAddress3()); |
|
140 | - $this->assertEquals( $item->getPostal(), $itemSaved->getPostal()); |
|
141 | - $this->assertEquals( $item->getCity(), $itemSaved->getCity()); |
|
142 | - $this->assertEquals( $item->getState(), $itemSaved->getState()); |
|
143 | - $this->assertEquals( $item->getCountryId(), $itemSaved->getCountryId()); |
|
144 | - $this->assertEquals( $item->getLanguageId(), $itemSaved->getLanguageId()); |
|
145 | - $this->assertEquals( $item->getTelephone(), $itemSaved->getTelephone()); |
|
146 | - $this->assertEquals( $item->getEmail(), $itemSaved->getEmail()); |
|
147 | - $this->assertEquals( $item->getTelefax(), $itemSaved->getTelefax()); |
|
148 | - $this->assertEquals( $item->getWebsite(), $itemSaved->getWebsite()); |
|
149 | - $this->assertEquals( $item->getLongitude(), $itemSaved->getLongitude()); |
|
150 | - $this->assertEquals( $item->getLatitude(), $itemSaved->getLatitude()); |
|
129 | + $this->assertEquals( $item->getParentId(), $itemSaved->getParentId() ); |
|
130 | + $this->assertEquals( $item->getPosition(), $itemSaved->getPosition() ); |
|
131 | + $this->assertEquals( $item->getCompany(), $itemSaved->getCompany() ); |
|
132 | + $this->assertEquals( $item->getVatID(), $itemSaved->getVatID() ); |
|
133 | + $this->assertEquals( $item->getSalutation(), $itemSaved->getSalutation() ); |
|
134 | + $this->assertEquals( $item->getTitle(), $itemSaved->getTitle() ); |
|
135 | + $this->assertEquals( $item->getFirstname(), $itemSaved->getFirstname() ); |
|
136 | + $this->assertEquals( $item->getLastname(), $itemSaved->getLastname() ); |
|
137 | + $this->assertEquals( $item->getAddress1(), $itemSaved->getAddress1() ); |
|
138 | + $this->assertEquals( $item->getAddress2(), $itemSaved->getAddress2() ); |
|
139 | + $this->assertEquals( $item->getAddress3(), $itemSaved->getAddress3() ); |
|
140 | + $this->assertEquals( $item->getPostal(), $itemSaved->getPostal() ); |
|
141 | + $this->assertEquals( $item->getCity(), $itemSaved->getCity() ); |
|
142 | + $this->assertEquals( $item->getState(), $itemSaved->getState() ); |
|
143 | + $this->assertEquals( $item->getCountryId(), $itemSaved->getCountryId() ); |
|
144 | + $this->assertEquals( $item->getLanguageId(), $itemSaved->getLanguageId() ); |
|
145 | + $this->assertEquals( $item->getTelephone(), $itemSaved->getTelephone() ); |
|
146 | + $this->assertEquals( $item->getEmail(), $itemSaved->getEmail() ); |
|
147 | + $this->assertEquals( $item->getTelefax(), $itemSaved->getTelefax() ); |
|
148 | + $this->assertEquals( $item->getWebsite(), $itemSaved->getWebsite() ); |
|
149 | + $this->assertEquals( $item->getLongitude(), $itemSaved->getLongitude() ); |
|
150 | + $this->assertEquals( $item->getLatitude(), $itemSaved->getLatitude() ); |
|
151 | 151 | |
152 | 152 | $this->assertEquals( $this->editor, $itemSaved->getEditor() ); |
153 | 153 | $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeCreated() ); |
154 | - $this->assertRegExp('/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified()); |
|
154 | + $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() ); |
|
155 | 155 | |
156 | 156 | $this->assertEquals( $itemExp->getId(), $itemUpd->getId() ); |
157 | - $this->assertEquals( $itemExp->getParentId(), $itemUpd->getParentId()); |
|
158 | - $this->assertEquals( $itemExp->getPosition(), $itemUpd->getPosition()); |
|
159 | - $this->assertEquals( $itemExp->getCompany(), $itemUpd->getCompany()); |
|
160 | - $this->assertEquals( $itemExp->getVatID(), $itemUpd->getVatID()); |
|
161 | - $this->assertEquals( $itemExp->getSalutation(), $itemUpd->getSalutation()); |
|
162 | - $this->assertEquals( $itemExp->getTitle(), $itemUpd->getTitle()); |
|
163 | - $this->assertEquals( $itemExp->getFirstname(), $itemUpd->getFirstname()); |
|
164 | - $this->assertEquals( $itemExp->getLastname(), $itemUpd->getLastname()); |
|
165 | - $this->assertEquals( $itemExp->getAddress1(), $itemUpd->getAddress1()); |
|
166 | - $this->assertEquals( $itemExp->getAddress2(), $itemUpd->getAddress2()); |
|
167 | - $this->assertEquals( $itemExp->getAddress3(), $itemUpd->getAddress3()); |
|
168 | - $this->assertEquals( $itemExp->getPostal(), $itemUpd->getPostal()); |
|
169 | - $this->assertEquals( $itemExp->getCity(), $itemUpd->getCity()); |
|
170 | - $this->assertEquals( $itemExp->getState(), $itemUpd->getState()); |
|
171 | - $this->assertEquals( $itemExp->getCountryId(), $itemUpd->getCountryId()); |
|
172 | - $this->assertEquals( $itemExp->getLanguageId(), $itemUpd->getLanguageId()); |
|
173 | - $this->assertEquals( $itemExp->getTelephone(), $itemUpd->getTelephone()); |
|
174 | - $this->assertEquals( $itemExp->getEmail(), $itemUpd->getEmail()); |
|
175 | - $this->assertEquals( $itemExp->getTelefax(), $itemUpd->getTelefax()); |
|
176 | - $this->assertEquals( $itemExp->getWebsite(), $itemUpd->getWebsite()); |
|
177 | - $this->assertEquals( $itemExp->getLongitude(), $itemUpd->getLongitude()); |
|
178 | - $this->assertEquals( $itemExp->getLatitude(), $itemUpd->getLatitude()); |
|
157 | + $this->assertEquals( $itemExp->getParentId(), $itemUpd->getParentId() ); |
|
158 | + $this->assertEquals( $itemExp->getPosition(), $itemUpd->getPosition() ); |
|
159 | + $this->assertEquals( $itemExp->getCompany(), $itemUpd->getCompany() ); |
|
160 | + $this->assertEquals( $itemExp->getVatID(), $itemUpd->getVatID() ); |
|
161 | + $this->assertEquals( $itemExp->getSalutation(), $itemUpd->getSalutation() ); |
|
162 | + $this->assertEquals( $itemExp->getTitle(), $itemUpd->getTitle() ); |
|
163 | + $this->assertEquals( $itemExp->getFirstname(), $itemUpd->getFirstname() ); |
|
164 | + $this->assertEquals( $itemExp->getLastname(), $itemUpd->getLastname() ); |
|
165 | + $this->assertEquals( $itemExp->getAddress1(), $itemUpd->getAddress1() ); |
|
166 | + $this->assertEquals( $itemExp->getAddress2(), $itemUpd->getAddress2() ); |
|
167 | + $this->assertEquals( $itemExp->getAddress3(), $itemUpd->getAddress3() ); |
|
168 | + $this->assertEquals( $itemExp->getPostal(), $itemUpd->getPostal() ); |
|
169 | + $this->assertEquals( $itemExp->getCity(), $itemUpd->getCity() ); |
|
170 | + $this->assertEquals( $itemExp->getState(), $itemUpd->getState() ); |
|
171 | + $this->assertEquals( $itemExp->getCountryId(), $itemUpd->getCountryId() ); |
|
172 | + $this->assertEquals( $itemExp->getLanguageId(), $itemUpd->getLanguageId() ); |
|
173 | + $this->assertEquals( $itemExp->getTelephone(), $itemUpd->getTelephone() ); |
|
174 | + $this->assertEquals( $itemExp->getEmail(), $itemUpd->getEmail() ); |
|
175 | + $this->assertEquals( $itemExp->getTelefax(), $itemUpd->getTelefax() ); |
|
176 | + $this->assertEquals( $itemExp->getWebsite(), $itemUpd->getWebsite() ); |
|
177 | + $this->assertEquals( $itemExp->getLongitude(), $itemUpd->getLongitude() ); |
|
178 | + $this->assertEquals( $itemExp->getLatitude(), $itemUpd->getLatitude() ); |
|
179 | 179 | |
180 | 180 | $this->assertEquals( $this->editor, $itemUpd->getEditor() ); |
181 | 181 | $this->assertEquals( $itemExp->getTimeCreated(), $itemUpd->getTimeCreated() ); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultSaved ); |
185 | 185 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultUpd ); |
186 | 186 | |
187 | - $this->setExpectedException('\\Aimeos\\MShop\\Exception'); |
|
187 | + $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
|
188 | 188 | $this->object->getItem( $itemSaved->getId() ); |
189 | 189 | } |
190 | 190 |