@@ -135,7 +135,7 @@ class AccountManagementTest extends \PHPUnit\Framework\TestCase
135135 /**
136136 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Customer\Model\ResourceModel\Visitor\CollectionFactory
137137 */
138- private $ visitorCollectionFactory ;
138+ private $ visitorColFactory ;
139139
140140 /**
141141 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Session\SaveHandlerInterface
@@ -200,7 +200,7 @@ protected function setUp()
200200 $ this ->dateTimeFactory = $ this ->createMock (DateTimeFactory::class);
201201 $ this ->accountConfirmation = $ this ->createMock (AccountConfirmation::class);
202202
203- $ this ->visitorCollectionFactory = $ this ->getMockBuilder (
203+ $ this ->visitorColFactory = $ this ->getMockBuilder (
204204 \Magento \Customer \Model \ResourceModel \Visitor \CollectionFactory::class
205205 )
206206 ->disableOriginalConstructor ()
@@ -244,7 +244,7 @@ protected function setUp()
244244 'accountConfirmation ' => $ this ->accountConfirmation ,
245245 'sessionManager ' => $ this ->sessionManager ,
246246 'saveHandler ' => $ this ->saveHandler ,
247- 'visitorCollectionFactory ' => $ this ->visitorCollectionFactory ,
247+ 'visitorColFactory ' => $ this ->visitorColFactory ,
248248 'addressRegistry ' => $ this ->addressRegistryMock ,
249249 ]
250250 );
@@ -1385,7 +1385,7 @@ private function reInitModel()
13851385 $ this ->sessionManager = $ this ->getMockBuilder (\Magento \Framework \Session \SessionManagerInterface::class)
13861386 ->disableOriginalConstructor ()
13871387 ->getMockForAbstractClass ();
1388- $ this ->visitorCollectionFactory = $ this ->getMockBuilder (
1388+ $ this ->visitorColFactory = $ this ->getMockBuilder (
13891389 \Magento \Customer \Model \ResourceModel \Visitor \CollectionFactory::class
13901390 )
13911391 ->disableOriginalConstructor ()
@@ -1431,7 +1431,7 @@ private function reInitModel()
14311431 'stringHelper ' => $ this ->string ,
14321432 'scopeConfig ' => $ this ->scopeConfig ,
14331433 'sessionManager ' => $ this ->sessionManager ,
1434- 'visitorCollectionFactory ' => $ this ->visitorCollectionFactory ,
1434+ 'visitorColFactory ' => $ this ->visitorColFactory ,
14351435 'saveHandler ' => $ this ->saveHandler ,
14361436 'encryptor ' => $ this ->encryptor ,
14371437 'dataProcessor ' => $ this ->dataObjectProcessor ,
@@ -1530,7 +1530,7 @@ public function testChangePassword()
15301530 ->disableOriginalConstructor ()->setMethods (['addFieldToFilter ' , 'getItems ' ])->getMock ();
15311531 $ visitorCollection ->expects ($ this ->atLeastOnce ())->method ('addFieldToFilter ' )->willReturnSelf ();
15321532 $ 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 ' )
15341534 ->willReturn ($ visitorCollection );
15351535 $ this ->saveHandler ->expects ($ this ->atLeastOnce ())->method ('destroy ' )
15361536 ->withConsecutive (
@@ -1584,7 +1584,7 @@ function ($string) {
15841584 ->disableOriginalConstructor ()->setMethods (['addFieldToFilter ' , 'getItems ' ])->getMock ();
15851585 $ visitorCollection ->expects ($ this ->atLeastOnce ())->method ('addFieldToFilter ' )->willReturnSelf ();
15861586 $ 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 ' )
15881588 ->willReturn ($ visitorCollection );
15891589 $ this ->saveHandler ->expects ($ this ->atLeastOnce ())->method ('destroy ' )
15901590 ->withConsecutive (
0 commit comments