@@ -32,7 +32,7 @@ class IsAllowedGuestCheckoutObserverTest extends TestCase
32
32
/**
33
33
* @var MockObject|Config
34
34
*/
35
- private $ scopeConfig ;
35
+ private $ scopeConfigMock ;
36
36
37
37
/**
38
38
* @var MockObject|DataObject
@@ -60,7 +60,7 @@ class IsAllowedGuestCheckoutObserverTest extends TestCase
60
60
*/
61
61
protected function setUp (): void
62
62
{
63
- $ this ->scopeConfig = $ this ->getMockBuilder (Config::class)
63
+ $ this ->scopeConfigMock = $ this ->getMockBuilder (Config::class)
64
64
->disableOriginalConstructor ()
65
65
->setMethods (['isSetFlag ' , 'getValue ' ])
66
66
->getMock ();
@@ -87,7 +87,7 @@ protected function setUp(): void
87
87
$ this ->isAllowedGuestCheckoutObserver = (new ObjectManagerHelper ($ this ))->getObject (
88
88
IsAllowedGuestCheckoutObserver::class,
89
89
[
90
- 'scopeConfig ' => $ this ->scopeConfig ,
90
+ 'scopeConfig ' => $ this ->scopeConfigMock ,
91
91
]
92
92
);
93
93
}
@@ -146,7 +146,7 @@ public function testIsAllowedGuestCheckoutConfigSetToTrue($productType, $isAllow
146
146
->method ('getQuote ' )
147
147
->will ($ this ->returnValue ($ quote ));
148
148
149
- $ this ->scopeConfig ->expects ($ this ->any ())
149
+ $ this ->scopeConfigMock ->expects ($ this ->any ())
150
150
->method ('isSetFlag ' )
151
151
->with (
152
152
'catalog/downloadable/disable_guest_checkout ' ,
@@ -219,7 +219,7 @@ public function testIsAllowedGuestCheckoutConfigSetToFalse(): void
219
219
->method ('getQuote ' )
220
220
->will ($ this ->returnValue ($ quote ));
221
221
222
- $ this ->scopeConfig ->expects ($ this ->once ())
222
+ $ this ->scopeConfigMock ->expects ($ this ->once ())
223
223
->method ('isSetFlag ' )
224
224
->with (
225
225
'catalog/downloadable/disable_guest_checkout ' ,
0 commit comments