@@ -17,12 +17,12 @@ class ConverterTest extends \PHPUnit_Framework_TestCase
17
17
/**
18
18
* @var \Magento\Tax\Api\Data\TaxRateInterfaceFactory
19
19
*/
20
- protected $ _taxRateDataObjectFactory ;
20
+ protected $ taxRateDataObjectFactory ;
21
21
22
22
/**
23
23
* @var \Magento\Tax\Api\Data\TaxRateTitleInterfaceFactory
24
24
*/
25
- protected $ _taxRateTitleDataObjectFactory ;
25
+ protected $ taxRateTitleDataObjectFactory ;
26
26
27
27
/**
28
28
* @var \Magento\Framework\TestFramework\Unit\Helper
@@ -31,12 +31,16 @@ class ConverterTest extends \PHPUnit_Framework_TestCase
31
31
32
32
public function setUp ()
33
33
{
34
- $ this ->_taxRateDataObjectFactory = $ this ->getMockBuilder ('\Magento\Tax\Api\Data\TaxRateInterfaceFactory ' )
34
+ $ this ->taxRateDataObjectFactory = $ this ->getMockBuilder (
35
+ '\Magento\Tax\Api\Data\TaxRateInterfaceFactory '
36
+ )
35
37
->disableOriginalConstructor ()
36
38
->setMethods (['create ' ])
37
39
->getMock ();
38
40
39
- $ this ->_taxRateTitleDataObjectFactory = $ this ->getMockBuilder ('\Magento\Tax\Api\Data\TaxRateTitleInterfaceFactory ' )
41
+ $ this ->taxRateTitleDataObjectFactory = $ this ->getMockBuilder (
42
+ '\Magento\Tax\Api\Data\TaxRateTitleInterfaceFactory '
43
+ )
40
44
->disableOriginalConstructor ()
41
45
->setMethods (['create ' ])
42
46
->getMock ();
@@ -45,8 +49,8 @@ public function setUp()
45
49
$ this ->converter = $ this ->objectManager ->getObject (
46
50
'Magento\Tax\Model\Calculation\Rate\Converter ' ,
47
51
[
48
- 'taxRateDataObjectFactory ' => $ this ->_taxRateDataObjectFactory ,
49
- 'taxRateTitleDataObjectFactory ' => $ this ->_taxRateTitleDataObjectFactory ,
52
+ 'taxRateDataObjectFactory ' => $ this ->taxRateDataObjectFactory ,
53
+ 'taxRateTitleDataObjectFactory ' => $ this ->taxRateTitleDataObjectFactory ,
50
54
]
51
55
);
52
56
}
@@ -110,7 +114,7 @@ public function testPopulateTaxRateData()
110
114
]
111
115
);
112
116
113
- $ this ->_taxRateDataObjectFactory ->expects ($ this ->once ())->method ('create ' )->willReturn ($ taxRate );
117
+ $ this ->taxRateDataObjectFactory ->expects ($ this ->once ())->method ('create ' )->willReturn ($ taxRate );
114
118
115
119
$ this ->assertSame ($ taxRate , $ this ->converter ->populateTaxRateData ($ dataArray ));
116
120
$ this ->assertEquals ($ taxRate ->getTitles (), $ rateTitles );
0 commit comments