@@ -135,7 +135,7 @@ class AccountManagementTest extends \PHPUnit\Framework\TestCase
135
135
/**
136
136
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Customer\Model\ResourceModel\Visitor\CollectionFactory
137
137
*/
138
- private $ visitorCollectionFactory ;
138
+ private $ visitorColFactory ;
139
139
140
140
/**
141
141
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Session\SaveHandlerInterface
@@ -200,7 +200,7 @@ protected function setUp()
200
200
$ this ->dateTimeFactory = $ this ->createMock (DateTimeFactory::class);
201
201
$ this ->accountConfirmation = $ this ->createMock (AccountConfirmation::class);
202
202
203
- $ this ->visitorCollectionFactory = $ this ->getMockBuilder (
203
+ $ this ->visitorColFactory = $ this ->getMockBuilder (
204
204
\Magento \Customer \Model \ResourceModel \Visitor \CollectionFactory::class
205
205
)
206
206
->disableOriginalConstructor ()
@@ -244,7 +244,7 @@ protected function setUp()
244
244
'accountConfirmation ' => $ this ->accountConfirmation ,
245
245
'sessionManager ' => $ this ->sessionManager ,
246
246
'saveHandler ' => $ this ->saveHandler ,
247
- 'visitorCollectionFactory ' => $ this ->visitorCollectionFactory ,
247
+ 'visitorColFactory ' => $ this ->visitorColFactory ,
248
248
'addressRegistry ' => $ this ->addressRegistryMock ,
249
249
]
250
250
);
@@ -1385,7 +1385,7 @@ private function reInitModel()
1385
1385
$ this ->sessionManager = $ this ->getMockBuilder (\Magento \Framework \Session \SessionManagerInterface::class)
1386
1386
->disableOriginalConstructor ()
1387
1387
->getMockForAbstractClass ();
1388
- $ this ->visitorCollectionFactory = $ this ->getMockBuilder (
1388
+ $ this ->visitorColFactory = $ this ->getMockBuilder (
1389
1389
\Magento \Customer \Model \ResourceModel \Visitor \CollectionFactory::class
1390
1390
)
1391
1391
->disableOriginalConstructor ()
@@ -1431,7 +1431,7 @@ private function reInitModel()
1431
1431
'stringHelper ' => $ this ->string ,
1432
1432
'scopeConfig ' => $ this ->scopeConfig ,
1433
1433
'sessionManager ' => $ this ->sessionManager ,
1434
- 'visitorCollectionFactory ' => $ this ->visitorCollectionFactory ,
1434
+ 'visitorColFactory ' => $ this ->visitorColFactory ,
1435
1435
'saveHandler ' => $ this ->saveHandler ,
1436
1436
'encryptor ' => $ this ->encryptor ,
1437
1437
'dataProcessor ' => $ this ->dataObjectProcessor ,
@@ -1530,7 +1530,7 @@ public function testChangePassword()
1530
1530
->disableOriginalConstructor ()->setMethods (['addFieldToFilter ' , 'getItems ' ])->getMock ();
1531
1531
$ visitorCollection ->expects ($ this ->atLeastOnce ())->method ('addFieldToFilter ' )->willReturnSelf ();
1532
1532
$ visitorCollection ->expects ($ this ->atLeastOnce ())->method ('getItems ' )->willReturn ([$ visitor , $ visitor ]);
1533
- $ this ->visitorCollectionFactory ->expects ($ this ->atLeastOnce ())->method ('create ' )
1533
+ $ this ->visitorColFactory ->expects ($ this ->atLeastOnce ())->method ('create ' )
1534
1534
->willReturn ($ visitorCollection );
1535
1535
$ this ->saveHandler ->expects ($ this ->atLeastOnce ())->method ('destroy ' )
1536
1536
->withConsecutive (
@@ -1584,7 +1584,7 @@ function ($string) {
1584
1584
->disableOriginalConstructor ()->setMethods (['addFieldToFilter ' , 'getItems ' ])->getMock ();
1585
1585
$ visitorCollection ->expects ($ this ->atLeastOnce ())->method ('addFieldToFilter ' )->willReturnSelf ();
1586
1586
$ visitorCollection ->expects ($ this ->atLeastOnce ())->method ('getItems ' )->willReturn ([$ visitor , $ visitor ]);
1587
- $ this ->visitorCollectionFactory ->expects ($ this ->atLeastOnce ())->method ('create ' )
1587
+ $ this ->visitorColFactory ->expects ($ this ->atLeastOnce ())->method ('create ' )
1588
1588
->willReturn ($ visitorCollection );
1589
1589
$ this ->saveHandler ->expects ($ this ->atLeastOnce ())->method ('destroy ' )
1590
1590
->withConsecutive (
0 commit comments