Test Setup Failed
Push — master ( 795707...861da3 )
by
unknown
03:21
created
Functional/ImportExport/Strategy/OrderWithExistingCustomerStrategyTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     protected function getExpectedResultCallback($firstName, $lastName, $email)
176 176
     {
177
-        return function () use ($firstName, $lastName, $email) {
177
+        return function() use ($firstName, $lastName, $email) {
178 178
             /**
179 179
              * @var $store Store
180 180
              */
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
         $order = new Order();
231 231
         $order->setCustomer($customer);
232 232
         $order->setOriginId(1);
233
-        $order->setIncrementId((string) rand(1, 1000));
233
+        $order->setIncrementId((string)rand(1, 1000));
234 234
         $order->setCustomerEmail($email);
235 235
         $order->setCart(new Cart());
236 236
         $order->setStatus('open');
Please login to merge, or discard this patch.
MagentoBundle/Tests/Functional/ImportExport/Strategy/OrderStrategyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
             $orderNotesCollection
137 137
         );
138 138
 
139
-        $actualOrderNoteIds = $orderNotesCollection->map(function (OrderNote $orderNote) {
139
+        $actualOrderNoteIds = $orderNotesCollection->map(function(OrderNote $orderNote) {
140 140
             return $orderNote->getOriginId();
141 141
         })->toArray();
142 142
 
Please login to merge, or discard this patch.
MagentoBundle/Tests/Functional/Fixtures/LoadGuestCustomerStrategyData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
         $magentoAddressUSAZ = $this->createMagentoAddress($this->regions['US-AZ'], $this->countries['US']);
43 43
         $magentoAddressUSLA = $this->createMagentoAddress($this->regions['US-LA'], $this->countries['US']);
44
-        $account         = $this->createAccount();
44
+        $account = $this->createAccount();
45 45
 
46 46
         $customer = $this->createCustomer(1, $account, $magentoAddressUSAZ, self::NONE_SHARED_EMAIL);
47 47
         $customer2 = $this->createCustomer(2, $account, $magentoAddressUSLA, self::TEST_SHARED_EMAIL);
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Tests/Unit/Service/MagentoUrlGeneratorTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -165,12 +165,12 @@
 block discarded – undo
165 165
         $origin
166 166
     ) {
167 167
         $result = $adminUrl .
168
-                  '/oro_gateway/do?'.$origin.'=' .
169
-                  $id .
170
-                  '&route=' . $magentoRoute .
171
-                  '&workflow=' . $flowName .
172
-                  '&success_url=' . urlencode($successUrl) .
173
-                  '&error_url=' . urlencode($errorUrl);
168
+                    '/oro_gateway/do?'.$origin.'=' .
169
+                    $id .
170
+                    '&route=' . $magentoRoute .
171
+                    '&workflow=' . $flowName .
172
+                    '&success_url=' . urlencode($successUrl) .
173
+                    '&error_url=' . urlencode($errorUrl);
174 174
 
175 175
         $this->transport->expects($this->atLeastOnce())->method('getAdminUrl')->will($this->returnValue($adminUrl));
176 176
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $origin
166 166
     ) {
167 167
         $result = $adminUrl .
168
-                  '/oro_gateway/do?'.$origin.'=' .
168
+                  '/oro_gateway/do?' . $origin . '=' .
169 169
                   $id .
170 170
                   '&route=' . $magentoRoute .
171 171
                   '&workflow=' . $flowName .
@@ -214,10 +214,10 @@  discard block
 block discarded – undo
214 214
         $exception = new ExtensionRequiredException;
215 215
 
216 216
         return [
217
-            [144, $successRoute, $errorRoute, $adminUrl,  $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin],
217
+            [144, $successRoute, $errorRoute, $adminUrl, $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin],
218 218
             [356, $successRoute, $errorRoute, $exception, $successUrl, $errorUrl, $flowName, $checkoutRoute, $origin],
219
-            [543, $exception,    $errorRoute, $adminUrl,  $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin],
220
-            [632, $successRoute, $exception,  $adminUrl,  $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin],
219
+            [543, $exception, $errorRoute, $adminUrl, $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin],
220
+            [632, $successRoute, $exception, $adminUrl, $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin],
221 221
         ];
222 222
     }
223 223
 }
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Tests/Unit/Service/StateManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $this->assertFalse($stateManager->isInState($object->stateField, self::STATE_REQUIRE_ADDRESS));
35 35
         $this->assertFalse($stateManager->isInState($object->stateField, self::STATE_REQUIRE_INFO));
36 36
 
37
-        $stateManager->addState($object, 'stateField', self::STATE_REQUIRE_ADDRESS | self::STATE_REQUIRE_INFO);
37
+        $stateManager->addState($object, 'stateField', self::STATE_REQUIRE_ADDRESS|self::STATE_REQUIRE_INFO);
38 38
         $this->assertTrue($stateManager->isInState($object->stateField, self::STATE_REQUIRE_ADDRESS));
39 39
         $this->assertTrue($stateManager->isInState($object->stateField, self::STATE_REQUIRE_INFO));
40 40
 
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Tests/Unit/Entity/MagentoSoapTransportTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,18 +34,18 @@
 block discarded – undo
34 34
         $adminUrl = 'http://localhost/admin';
35 35
 
36 36
         return [
37
-            'wsdl_url'               => ['wsdlUrl',              $wsdlUrl, $wsdlUrl],
38
-            'api_user'               => ['apiUser',              $apiUser, $apiUser],
39
-            'api_key'                => ['apiKey',               $apiKey, $apiKey],
40
-            'website_id'             => ['websiteId',            $websiteId, $websiteId],
41
-            'websites'               => ['websites',             $websites, $websites],
42
-            'syncStartDate'          => ['syncStartDate',        $syncStartDate, $syncStartDate],
43
-            'syncRange'              => ['syncRange',            $syncRange, $syncRange],
37
+            'wsdl_url'               => ['wsdlUrl', $wsdlUrl, $wsdlUrl],
38
+            'api_user'               => ['apiUser', $apiUser, $apiUser],
39
+            'api_key'                => ['apiKey', $apiKey, $apiKey],
40
+            'website_id'             => ['websiteId', $websiteId, $websiteId],
41
+            'websites'               => ['websites', $websites, $websites],
42
+            'syncStartDate'          => ['syncStartDate', $syncStartDate, $syncStartDate],
43
+            'syncRange'              => ['syncRange', $syncRange, $syncRange],
44 44
             'is_extension_installed' => ['isExtensionInstalled', $isExtensionInstalled, $isExtensionInstalled],
45
-            'guest_customer_sync'    => ['guestCustomerSync',    $guestCustomerSync, $guestCustomerSync],
46
-            'admin_url'              => ['adminUrl',             $adminUrl, $adminUrl],
47
-            'extension_version'      => ['extensionVersion',     '1.0.0', '1.0.0'],
48
-            'magento_version'        => ['magentoVersion',       '1.0.0', '1.0.0'],
45
+            'guest_customer_sync'    => ['guestCustomerSync', $guestCustomerSync, $guestCustomerSync],
46
+            'admin_url'              => ['adminUrl', $adminUrl, $adminUrl],
47
+            'extension_version'      => ['extensionVersion', '1.0.0', '1.0.0'],
48
+            'magento_version'        => ['magentoVersion', '1.0.0', '1.0.0'],
49 49
             'newsletter_subscriber_synced_to_id' => ['newsletter_subscriber_synced_to_id', 10, 10]
50 50
         ];
51 51
     }
Please login to merge, or discard this patch.
Tests/Unit/EventListener/AccountWidgetsDataGridListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
             ->will($this->returnValue($this->queryBuilder));
79 79
 
80 80
         $id = rand();
81
-        $name = 'name_'.rand();
81
+        $name = 'name_' . rand();
82 82
         $this->parameters->expects($this->any())
83 83
             ->method('get')
84 84
             ->will(
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Tests/Unit/EventListener/OrderGridListenerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                                 2 => 'test3',
130 130
                                 3 => 'test4',
131 131
                                 4 => 'country.name as countryName',
132
-                                5 => 'CONCAT(CASE WHEN address.regionText IS NOT NULL '.
132
+                                5 => 'CONCAT(CASE WHEN address.regionText IS NOT NULL ' .
133 133
                                     'THEN address.regionText ELSE region.name END, \'\') as regionName',
134 134
                                 6 => 'test5'
135 135
                             ],
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
                                         'join'          => 'o.addresses',
140 140
                                         'alias'         => 'address',
141 141
                                         'conditionType' => 'WITH',
142
-                                        'condition'     => 'address.id IN (SELECT oa.id '.
143
-                                            'FROM OroMagentoBundle:OrderAddress oa LEFT JOIN '.
142
+                                        'condition'     => 'address.id IN (SELECT oa.id ' .
143
+                                            'FROM OroMagentoBundle:OrderAddress oa LEFT JOIN ' .
144 144
                                             'oa.types type WHERE type.name = \'billing\' OR type.name IS NULL)'
145 145
                                     ],
146 146
                                     [
Please login to merge, or discard this patch.
Tests/Unit/EventListener/UpdateIntegrationConnectorsListenerTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
         $this->transport = $this->createMock(MagentoTransportInterface::class);
29 29
 
30 30
         $this->transport
31
-             ->expects($this->any())
32
-             ->method('isSupportedExtensionVersion')
33
-             ->willReturn(false);
31
+                ->expects($this->any())
32
+                ->method('isSupportedExtensionVersion')
33
+                ->willReturn(false);
34 34
 
35 35
         $this->typesRegistry
36
-             ->expects($this->any())
37
-             ->method('getTransportTypeBySettingEntity')
38
-             ->willReturn($this->transport);
36
+                ->expects($this->any())
37
+                ->method('getTransportTypeBySettingEntity')
38
+                ->willReturn($this->transport);
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.