Test Setup Failed
Push — master ( 568f60...80f464 )
by
unknown
03:06
created
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.
Oro/Bundle/MagentoBundle/Tests/Unit/EventListener/StoreGridListenerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $this->datagrid->expects($this->any())
82 82
             ->method('getParameters')
83
-            ->will($this->returnValue($this->createParameterBag(['channelIds' => 100 ])));
83
+            ->will($this->returnValue($this->createParameterBag(['channelIds' => 100])));
84 84
 
85 85
         $transport = new MagentoSoapTransport();
86 86
         $integration = new Integration();
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $this->datagrid->expects($this->any())
112 112
             ->method('getParameters')
113
-            ->will($this->returnValue($this->createParameterBag(['channelIds' => 100 ])));
113
+            ->will($this->returnValue($this->createParameterBag(['channelIds' => 100])));
114 114
 
115 115
         $this->qb->expects($this->never())
116 116
             ->method('andWhere')
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             ->method('get')
158 158
             ->will(
159 159
                 $this->returnCallback(
160
-                    function ($key) use ($data) {
160
+                    function($key) use ($data) {
161 161
                         return $data[$key];
162 162
                     }
163 163
                 )
Please login to merge, or discard this patch.
MagentoBundle/Tests/Unit/EventListener/CustomerGroupGridListenerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         $this->datagrid->expects($this->any())
72 72
             ->method('getParameters')
73
-            ->will($this->returnValue($this->createParameterBag(['channelIds' => 100 ])));
73
+            ->will($this->returnValue($this->createParameterBag(['channelIds' => 100])));
74 74
 
75 75
         $this->qb->expects($this->never())
76 76
             ->method('andWhere')
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             ->method('get')
118 118
             ->will(
119 119
                 $this->returnCallback(
120
-                    function ($key) use ($data) {
120
+                    function($key) use ($data) {
121 121
                         return $data[$key];
122 122
                     }
123 123
                 )
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Tests/Unit/Provider/AbstractSyncProcessorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
                     $this->equalTo(ProcessorRegistry::TYPE_IMPORT),
142 142
                     $this->equalTo('test job'),
143 143
                     $this->callback(
144
-                        function (array $config) use ($expectedConfig) {
144
+                        function(array $config) use ($expectedConfig) {
145 145
                             // dictionary
146 146
                             if (!array_key_exists('initialSyncInterval', $config)) {
147 147
                                 return true;
Please login to merge, or discard this patch.
Unit/Provider/Transport/Provider/OroBridgeExtensionConfigProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     protected function setUp()
24 24
     {
25
-        $this->client =  $this->getMockBuilder('Oro\Bundle\IntegrationBundle\Provider\Rest\Client\RestClientInterface')
25
+        $this->client = $this->getMockBuilder('Oro\Bundle\IntegrationBundle\Provider\Rest\Client\RestClientInterface')
26 26
             ->disableOriginalConstructor()
27 27
             ->getMock();
28 28
 
Please login to merge, or discard this patch.
Bundle/MagentoBundle/Tests/Unit/Provider/TransportEntityProviderTest.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -97,18 +97,18 @@
 block discarded – undo
97 97
             });
98 98
 
99 99
         $this->form
100
-             ->expects($this->once())
101
-             ->method('getData')
102
-             ->willReturn($this->transportEntity);
100
+                ->expects($this->once())
101
+                ->method('getData')
102
+                ->willReturn($this->transportEntity);
103 103
 
104 104
         $this->form
105
-             ->expects($this->once())
106
-             ->method('handleRequest');
105
+                ->expects($this->once())
106
+                ->method('handleRequest');
107 107
 
108 108
         $this->formFactory
109
-             ->expects($this->once())
110
-             ->method('createNamed')
111
-             ->willReturn($this->form);
109
+                ->expects($this->once())
110
+                ->method('createNamed')
111
+                ->willReturn($this->form);
112 112
 
113 113
         $transport = $this->createMock(MagentoTransportInterface::class);
114 114
         $transport->method('getSettingsEntityFQCN')->willReturn($fqcn);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         $this->request
89 89
             ->expects($this->once())
90 90
             ->method('get')
91
-            ->willReturnCallback(function ($arg) use ($entityId, $doFind) {
91
+            ->willReturnCallback(function($arg) use ($entityId, $doFind) {
92 92
                 if ($arg === 'id' && $doFind) {
93 93
                     return $entityId;
94 94
                 }
Please login to merge, or discard this patch.
Bundle/MagentoBundle/Tests/Unit/Provider/ConnectorChoicesProviderTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
         $this->translator    = $this->createMock(Translator::class);
26 26
 
27 27
         $this->translator
28
-             ->expects($this->any())
29
-             ->method('trans')
30
-             ->will($this->returnArgument(0));
28
+                ->expects($this->any())
29
+                ->method('trans')
30
+                ->will($this->returnArgument(0));
31 31
 
32 32
         $this->connectorChoicesProvider = new ConnectorChoicesProvider(
33 33
             $this->typesRegistry,
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
         $expected = ['test' => 'test'];
52 52
 
53 53
         $this->typesRegistry
54
-             ->expects($this->once())
55
-             ->method('getAvailableConnectorsTypesChoiceList')
56
-             ->willReturn($expected);
54
+                ->expects($this->once())
55
+                ->method('getAvailableConnectorsTypesChoiceList')
56
+                ->willReturn($expected);
57 57
 
58 58
         $choices = $this->connectorChoicesProvider->getAllowedConnectorsChoices(true, true, 'magento');
59 59
         $this->assertEquals(
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Tests/Unit/Provider/MagentoConnectorTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -304,10 +304,10 @@
 block discarded – undo
304 304
 
305 305
         /** @var \PHPUnit_Framework_MockObject_MockObject|Transport $transportSettings */
306 306
         $transportSettings = $this->getMockForAbstractClass('Oro\\Bundle\\IntegrationBundle\\Entity\\Transport');
307
-        $channel           = $channel ? : new Channel();
307
+        $channel           = $channel ?: new Channel();
308 308
         $channel->setTransport($transportSettings);
309 309
 
310
-        $contextMock = $context ? : new Context([]);
310
+        $contextMock = $context ?: new Context([]);
311 311
 
312 312
         $executionContext = new ExecutionContext();
313 313
         $stepExecutionMock->expects($this->any())
Please login to merge, or discard this patch.