Test Setup Failed
Push — master ( 568f60...80f464 )
by
unknown
03:06
created
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.
Oro/Bundle/MagentoBundle/Tests/Unit/Dashboard/PurchaseDataProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $translator = $this->createMock('Symfony\Component\Translation\TranslatorInterface');
55 55
         $translator->expects($this->any())
56 56
             ->method('trans')
57
-            ->will($this->returnCallback(function ($id) {
57
+            ->will($this->returnCallback(function($id) {
58 58
                 return $id;
59 59
             }));
60 60
 
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Tests/Unit/Dashboard/CustomerDataProviderTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             ->method('getRepository')
76 76
             ->will(
77 77
                 $this->returnCallback(
78
-                    function ($entityName) use ($channelRepository, $customerRepository) {
78
+                    function($entityName) use ($channelRepository, $customerRepository) {
79 79
                         if ($entityName == 'OroChannelBundle:Channel') {
80 80
                             return $channelRepository;
81 81
                         }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             );
125 125
         $this->dateHelper->expects($this->once())
126 126
             ->method('getDatePeriod')
127
-            ->willReturnCallback(function ($past, $now) {
127
+            ->willReturnCallback(function($past, $now) {
128 128
                 return [
129 129
                     '2014-02' => ['date' => '2014-02-01'],
130 130
                     '2014-03' => ['date' => '2014-03-01'],
@@ -141,12 +141,12 @@  discard block
 block discarded – undo
141 141
             });
142 142
         $this->dateHelper->expects($this->any())
143 143
             ->method('getKey')
144
-            ->willReturnCallback(function ($past, $now, $row) {
144
+            ->willReturnCallback(function($past, $now, $row) {
145 145
                 return $row['yearCreated'] . '-' . $row['monthCreated'];
146 146
             });
147 147
         $this->dateHelper->expects($this->once())
148 148
             ->method('getPeriod')
149
-            ->willReturnCallback(function ($dateRange) {
149
+            ->willReturnCallback(function($dateRange) {
150 150
                 return [$dateRange['start'], $dateRange['end']];
151 151
             });
152 152
         $this->assertEquals(
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Tests/Unit/Dashboard/OrderDataProviderTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function testGetAverageOrderAmountByCustomerChartView()
61 61
     {
62
-        $sourceOrderData   = [
62
+        $sourceOrderData = [
63 63
             'First'  => [['month' => '2014-09-01', 'amount' => 3]],
64 64
             'Second' => [['month' => '2014-09-01', 'amount' => 5]]
65 65
         ];
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             'First'  => [['month' => '2014-09-01', 'amount' => 3]],
68 68
             'Second' => [['month' => '2014-09-01', 'amount' => 5]]
69 69
         ];
70
-        $expectedOptions   = [
70
+        $expectedOptions = [
71 71
             'name'        => 'multiline_chart',
72 72
             'data_schema' => [
73 73
                 'label' => [
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 ]
83 83
             ]
84 84
         ];
85
-        $chartConfig       = [
85
+        $chartConfig = [
86 86
             'data_schema' => [
87 87
                 'label' => [
88 88
                     'field_name' => 'month',
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             ->willReturn(['viewType' => 'month']);
111 111
         $dateHelper->expects($this->once())
112 112
             ->method('getPeriod')
113
-            ->willReturnCallback(function ($dateRange) {
113
+            ->willReturnCallback(function($dateRange) {
114 114
                 return [$dateRange['start'], $dateRange['end']];
115 115
             });
116 116
         $orderRepository->expects($this->once())
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             );
177 177
         $this->dateHelper->expects($this->once())
178 178
             ->method('getPeriod')
179
-            ->willReturnCallback(function ($dateRange) {
179
+            ->willReturnCallback(function($dateRange) {
180 180
                 return [$dateRange['start'], $dateRange['end']];
181 181
             });
182 182
         $this->dateHelper->expects($this->once())
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
             );
328 328
         $this->dateHelper->expects($this->once())
329 329
             ->method('getPeriod')
330
-            ->willReturnCallback(function ($dateRange) {
330
+            ->willReturnCallback(function($dateRange) {
331 331
                 return [$dateRange['start'], $dateRange['end']];
332 332
             });
333 333
         $this->dateHelper->expects($this->once())
Please login to merge, or discard this patch.
MagentoBundle/Tests/Unit/Form/EventListener/SettingsFormSubscriberTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -82,16 +82,16 @@
 block discarded – undo
82 82
     public function preSetDataProvider()
83 83
     {
84 84
         return [
85
-              'with websites' => [
86
-                  'websites' => [
87
-                      [
88
-                          'id' => 1, 'label' => 'Website 1'
89
-                      ]
90
-                  ],
91
-                  'expected' => [
92
-                      'Website 1' => 1
93
-                  ]
94
-              ]
85
+                'with websites' => [
86
+                    'websites' => [
87
+                        [
88
+                            'id' => 1, 'label' => 'Website 1'
89
+                        ]
90
+                    ],
91
+                    'expected' => [
92
+                        'Website 1' => 1
93
+                    ]
94
+                ]
95 95
         ];
96 96
     }
97 97
 
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Tests/Unit/Form/Type/CustomerTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 $this->isType('string'),
47 47
                 $this->isType('string'),
48 48
                 $this->callback(
49
-                    function ($item) {
49
+                    function($item) {
50 50
                         $this->assertInternalType('array', $item);
51 51
                         $this->assertArrayHasKey('label', $item);
52 52
 
Please login to merge, or discard this patch.
Bundle/MagentoBundle/Tests/Unit/Form/Type/CartItemCollectionTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             ->method('setNormalizers')
27 27
             ->with(
28 28
                 [
29
-                    'options' => function (Options $options, $values) {
29
+                    'options' => function(Options $options, $values) {
30 30
                         if (!$values) {
31 31
                             $values = [];
32 32
                         }
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Tests/Unit/Handler/TransportHandlerTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,14 +112,14 @@
 block discarded – undo
112 112
             );
113 113
 
114 114
         $this->connectorChoicesProvider
115
-             ->expects($this->once())
116
-             ->method('getAllowedConnectorsChoices')
117
-             ->willReturn($allowedConnectorsChoices);
115
+                ->expects($this->once())
116
+                ->method('getAllowedConnectorsChoices')
117
+                ->willReturn($allowedConnectorsChoices);
118 118
 
119 119
         $this->websiteChoicesProvider
120
-             ->expects($this->once())
121
-             ->method('formatWebsiteChoices')
122
-             ->willReturn($websiteChoices);
120
+                ->expects($this->once())
121
+                ->method('formatWebsiteChoices')
122
+                ->willReturn($websiteChoices);
123 123
 
124 124
         $this->transportEntityProvider
125 125
             ->expects($this->once())
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
             ->method('get')
97 97
             ->will(
98 98
                 $this->returnCallback(
99
-                    function ($argument) {
99
+                    function($argument) {
100 100
                         switch ($argument) {
101 101
                             case TransportHandler::TRANSPORT_TYPE:
102 102
                                 return 'magento_soap';
Please login to merge, or discard this patch.