@@ -74,7 +74,7 @@ |
||
| 74 | 74 | |
| 75 | 75 | /** @var MagentoTransportInterface $transport */ |
| 76 | 76 | $transport = $this->typeRegistry |
| 77 | - ->getTransportTypeBySettingEntity($this->transportEntity, $this->channelType); |
|
| 77 | + ->getTransportTypeBySettingEntity($this->transportEntity, $this->channelType); |
|
| 78 | 78 | |
| 79 | 79 | $transport->init($this->transportEntity); |
| 80 | 80 | |
@@ -111,8 +111,8 @@ |
||
| 111 | 111 | public function hasOrganizationApplicableChannels(Organization $organization, $checkExtension = true) |
| 112 | 112 | { |
| 113 | 113 | /** |
| 114 | - * @todo Remove dependency on exact magento channel type in CRM-8153 |
|
| 115 | - */ |
|
| 114 | + * @todo Remove dependency on exact magento channel type in CRM-8153 |
|
| 115 | + */ |
|
| 116 | 116 | $channels = $this->doctrineHelper |
| 117 | 117 | ->getEntityRepository($this->channelClassName) |
| 118 | 118 | ->findBy(['type' => MagentoChannelType::TYPE, 'enabled' => true, 'organization' => $organization]); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $expectedData = [ |
| 43 | 43 | [ |
| 44 | 44 | 'label' => 'oro.workflow.b2c_flow_abandoned_shopping_cart.step.open.label', |
| 45 | - //value=OpenCart1 [not applied: OpenCart2(disabled channel), OpenCart3(expired), OpenCart4(purchased)] |
|
| 45 | + //value=OpenCart1 [not applied: OpenCart2(disabled channel), OpenCart3(expired), OpenCart4(purchased)] |
|
| 46 | 46 | 'value' => 10, |
| 47 | 47 | 'isNozzle' => false |
| 48 | 48 | ], |
@@ -27,11 +27,11 @@ discard block |
||
| 27 | 27 | $this->initClient([]); |
| 28 | 28 | |
| 29 | 29 | $this->manager = $this->getContainer() |
| 30 | - ->get('doctrine') |
|
| 31 | - ->getManager(); |
|
| 30 | + ->get('doctrine') |
|
| 31 | + ->getManager(); |
|
| 32 | 32 | |
| 33 | 33 | $this->fieldHelper = $this->getContainer() |
| 34 | - ->get('oro_entity.helper.field_helper'); |
|
| 34 | + ->get('oro_entity.helper.field_helper'); |
|
| 35 | 35 | |
| 36 | 36 | $this->loadFixtures([LoadOrderNotesData::class]); |
| 37 | 37 | } |
@@ -68,8 +68,8 @@ discard block |
||
| 68 | 68 | public function testGetCreatedOrderNote() |
| 69 | 69 | { |
| 70 | 70 | $orderNote = $this->manager |
| 71 | - ->getRepository('OroMagentoBundle:OrderNote') |
|
| 72 | - ->findOneBy(['originId' => LoadOrderNotesData::DEFAULT_ORIGIN_ID]); |
|
| 71 | + ->getRepository('OroMagentoBundle:OrderNote') |
|
| 72 | + ->findOneBy(['originId' => LoadOrderNotesData::DEFAULT_ORIGIN_ID]); |
|
| 73 | 73 | |
| 74 | 74 | $this->assertNotNull($orderNote); |
| 75 | 75 | $this->assertEquals($orderNote->getOriginId(), LoadOrderNotesData::DEFAULT_ORIGIN_ID); |
@@ -62,8 +62,8 @@ |
||
| 62 | 62 | 'magento-credit-memo-grid[_filter][status][value]' => 'refunded', |
| 63 | 63 | ], |
| 64 | 64 | 'assert' => [ |
| 65 | - 'channelName' => 'Magento channel', |
|
| 66 | - 'refunded' => '$120.50', |
|
| 65 | + 'channelName' => 'Magento channel', |
|
| 66 | + 'refunded' => '$120.50', |
|
| 67 | 67 | ], |
| 68 | 68 | 'expectedResultCount' => 1 |
| 69 | 69 | ], |
@@ -165,12 +165,12 @@ |
||
| 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 | |
@@ -28,14 +28,14 @@ |
||
| 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 | /** |
@@ -97,18 +97,18 @@ |
||
| 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); |
@@ -25,9 +25,9 @@ discard block |
||
| 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 |
||
| 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( |