File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 8
8
use Magento \Checkout \Model \ConfigProviderInterface ;
9
9
use Magento \Tax \Helper \Data as TaxHelper ;
10
10
use Magento \Framework \App \Config \ScopeConfigInterface ;
11
- use Magento \Checkout \Model \Session as CheckoutSession ;
12
11
13
12
class TaxConfigProvider implements ConfigProviderInterface
14
13
{
@@ -27,26 +26,18 @@ class TaxConfigProvider implements ConfigProviderInterface
27
26
*/
28
27
protected $ scopeConfig ;
29
28
30
- /**
31
- * @var CheckoutSession
32
- */
33
- protected $ checkoutSession ;
34
-
35
29
/**
36
30
* @param TaxHelper $taxHelper
37
31
* @param Config $taxConfig
38
- * @param CheckoutSession $checkoutSession
39
32
* @param ScopeConfigInterface $scopeConfig
40
33
*/
41
34
public function __construct (
42
35
TaxHelper $ taxHelper ,
43
36
Config $ taxConfig ,
44
- CheckoutSession $ checkoutSession ,
45
37
ScopeConfigInterface $ scopeConfig
46
38
) {
47
39
$ this ->taxHelper = $ taxHelper ;
48
40
$ this ->taxConfig = $ taxConfig ;
49
- $ this ->checkoutSession = $ checkoutSession ;
50
41
$ this ->scopeConfig = $ scopeConfig ;
51
42
}
52
43
Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Tax \Test \Unit \Model ;
9
9
10
- use Magento \Checkout \Model \Session ;
11
10
use Magento \Framework \App \Config \ScopeConfigInterface ;
12
11
use Magento \Quote \Model \Quote ;
13
12
use Magento \Store \Model \ScopeInterface ;
@@ -29,11 +28,6 @@ class TaxConfigProviderTest extends TestCase
29
28
*/
30
29
protected $ taxConfigMock ;
31
30
32
- /**
33
- * @var MockObject
34
- */
35
- protected $ checkoutSessionMock ;
36
-
37
31
/**
38
32
* @var MockObject
39
33
*/
@@ -53,14 +47,11 @@ protected function setUp(): void
53
47
{
54
48
$ this ->taxHelperMock = $ this ->createMock (Data::class);
55
49
$ this ->taxConfigMock = $ this ->createMock (Config::class);
56
- $ this ->checkoutSessionMock = $ this ->createMock (Session::class);
57
50
$ this ->scopeConfigMock = $ this ->getMockForAbstractClass (ScopeConfigInterface::class);
58
51
$ this ->quoteMock = $ this ->createMock (Quote::class);
59
- $ this ->checkoutSessionMock ->expects ($ this ->any ())->method ('getQuote ' )->willReturn ($ this ->quoteMock );
60
52
$ this ->model = new TaxConfigProvider (
61
53
$ this ->taxHelperMock ,
62
54
$ this ->taxConfigMock ,
63
- $ this ->checkoutSessionMock ,
64
55
$ this ->scopeConfigMock
65
56
);
66
57
}
You can’t perform that action at this time.
0 commit comments