Skip to content

Commit e8b0783

Browse files
author
Yu Tang
committed
2 parents e132de9 + 825f772 commit e8b0783

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

app/code/Magento/GroupedProduct/Test/Unit/Model/ProductTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ public function setUp()
334334
*/
335335
public function testGetProductLinks()
336336
{
337+
$this->markTestIncomplete('Skipped due to https://jira.corp.x.com/browse/MAGETWO-36926');
337338
$linkTypes = ['related' => 1, 'upsell' => 4, 'crosssell' => 5, 'associated' => 3];
338339
$this->linkTypeProviderMock->expects($this->once())
339340
->method('getLinkTypes')

app/code/Magento/Tax/Model/Calculation/Rate/Converter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ public function createTitleArrayFromServiceObject(\Magento\Tax\Api\Data\TaxRateI
6060
* @SuppressWarnings(PHPMD.NPathComplexity)
6161
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
6262
*/
63-
public function createArrayFromServiceObject(\Magento\Tax\Api\Data\TaxRateInterface $taxRate, $returnNumericLogic = false)
64-
{
63+
public function createArrayFromServiceObject(
64+
\Magento\Tax\Api\Data\TaxRateInterface $taxRate,
65+
$returnNumericLogic = false
66+
) {
6567
$taxRateFormData = [
6668
'tax_calculation_rate_id' => $taxRate->getId(),
6769
'tax_country_id' => $taxRate->getTaxCountryId(),

app/code/Magento/Tax/Test/Unit/Model/Calculation/Rate/ConverterTest.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class ConverterTest extends \PHPUnit_Framework_TestCase
1717
/**
1818
* @var \Magento\Tax\Api\Data\TaxRateInterfaceFactory
1919
*/
20-
protected $_taxRateDataObjectFactory;
20+
protected $taxRateDataObjectFactory;
2121

2222
/**
2323
* @var \Magento\Tax\Api\Data\TaxRateTitleInterfaceFactory
2424
*/
25-
protected $_taxRateTitleDataObjectFactory;
25+
protected $taxRateTitleDataObjectFactory;
2626

2727
/**
2828
* @var \Magento\Framework\TestFramework\Unit\Helper
@@ -31,12 +31,16 @@ class ConverterTest extends \PHPUnit_Framework_TestCase
3131

3232
public function setUp()
3333
{
34-
$this->_taxRateDataObjectFactory = $this->getMockBuilder('\Magento\Tax\Api\Data\TaxRateInterfaceFactory')
34+
$this->taxRateDataObjectFactory = $this->getMockBuilder(
35+
'\Magento\Tax\Api\Data\TaxRateInterfaceFactory'
36+
)
3537
->disableOriginalConstructor()
3638
->setMethods(['create'])
3739
->getMock();
3840

39-
$this->_taxRateTitleDataObjectFactory = $this->getMockBuilder('\Magento\Tax\Api\Data\TaxRateTitleInterfaceFactory')
41+
$this->taxRateTitleDataObjectFactory = $this->getMockBuilder(
42+
'\Magento\Tax\Api\Data\TaxRateTitleInterfaceFactory'
43+
)
4044
->disableOriginalConstructor()
4145
->setMethods(['create'])
4246
->getMock();
@@ -45,8 +49,8 @@ public function setUp()
4549
$this->converter = $this->objectManager->getObject(
4650
'Magento\Tax\Model\Calculation\Rate\Converter',
4751
[
48-
'taxRateDataObjectFactory' => $this->_taxRateDataObjectFactory,
49-
'taxRateTitleDataObjectFactory' => $this->_taxRateTitleDataObjectFactory,
52+
'taxRateDataObjectFactory' => $this->taxRateDataObjectFactory,
53+
'taxRateTitleDataObjectFactory' => $this->taxRateTitleDataObjectFactory,
5054
]
5155
);
5256
}
@@ -110,7 +114,7 @@ public function testPopulateTaxRateData()
110114
]
111115
);
112116

113-
$this->_taxRateDataObjectFactory->expects($this->once())->method('create')->willReturn($taxRate);
117+
$this->taxRateDataObjectFactory->expects($this->once())->method('create')->willReturn($taxRate);
114118

115119
$this->assertSame($taxRate, $this->converter->populateTaxRateData($dataArray));
116120
$this->assertEquals($taxRate->getTitles(), $rateTitles);

0 commit comments

Comments
 (0)