Test Setup Failed
Push — master ( 0d167c...90377c )
by
unknown
03:23
created
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.
src/Oro/Bundle/MagentoBundle/Tests/Unit/Provider/RestTokenProviderTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,8 +116,8 @@
 block discarded – undo
116 116
         );
117 117
 
118 118
         $this->parameterBag->add([
119
-             RestTokenProvider::USER_KEY => 'api_user',
120
-             RestTokenProvider::PASSWORD_KEY => 'api_key'
119
+                RestTokenProvider::USER_KEY => 'api_user',
120
+                RestTokenProvider::PASSWORD_KEY => 'api_key'
121 121
         ]);
122 122
 
123 123
         $this->expectException($expectedException);
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Tests/Unit/Provider/InitialSyncProcessorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             ->method('setData')
121 121
             ->with(
122 122
                 $this->callback(
123
-                    function ($data) use ($syncStartDate) {
123
+                    function($data) use ($syncStartDate) {
124 124
                         $this->assertArrayHasKey('initialSyncedTo', $data);
125 125
 
126 126
                         $this->assertEquals(['initialSyncedTo' => $syncStartDate->format(\DateTime::ISO8601)], $data);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             ->method('setData')
185 185
             ->with(
186 186
                 $this->callback(
187
-                    function ($data) use ($syncedTo, $interval) {
187
+                    function($data) use ($syncedTo, $interval) {
188 188
                         $this->assertArrayHasKey('initialSyncedTo', $data);
189 189
 
190 190
                         $date = \DateTime::createFromFormat(
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Tests/Unit/Model/ChannelSettingsProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
             ->with($this->isType('integer'))
74 74
             ->will(
75 75
                 $this->returnCallback(
76
-                    function ($id) use ($channels) {
76
+                    function($id) use ($channels) {
77 77
                         if (empty($channels[$id])) {
78 78
                             return null;
79 79
                         }
Please login to merge, or discard this patch.