Passed
Push — master ( 1a8053...1690e8 )
by Aimeos
03:06
created
lib/custom/tests/MShop/Customer/Manager/Lists/LaravelTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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' );
Please login to merge, or discard this patch.
lib/custom/tests/MShop/Customer/Manager/LaravelTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,10 +216,10 @@  discard block
 block discarded – undo
216 216
 		$expr[] = $search->compare( '==', 'customer.longitude', '10.0' );
217 217
 		$expr[] = $search->compare( '==', 'customer.latitude', '50.0' );
218 218
 
219
-		$param = ['text','default', $listItem->getRefId()];
219
+		$param = ['text', 'default', $listItem->getRefId()];
220 220
 		$expr[] = $search->compare( '!=', $search->createFunction( 'customer:has', $param ), null );
221 221
 
222
-		$param = ['text','default', 0];
222
+		$param = ['text', 'default', 0];
223 223
 		$expr[] = $search->compare( '==', $search->createFunction( 'customer:has', $param ), null );
224 224
 
225 225
 		$param = ['newsletter', null, '1'];
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 		$this->assertEquals( 2, count( $results ) );
296 296
 		$this->assertEquals( 3, $total );
297 297
 
298
-		foreach($results as $itemId => $item) {
298
+		foreach( $results as $itemId => $item ) {
299 299
 			$this->assertEquals( $itemId, $item->getId() );
300 300
 		}
301 301
 	}
Please login to merge, or discard this patch.
lib/custom/setup/unittest/data/customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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' => '' ),
Please login to merge, or discard this patch.
lib/custom/setup/unittest/data/customer-list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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 ),
Please login to merge, or discard this patch.