Test Setup Failed
Branch master (44bb91)
by Dima
03:54
created
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.
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.