Skip to content

Commit 76cde8d

Browse files
MAGETWO-59785: Incorrect URLs in sitemap when generated from admin with 'Use Secure URLs in Admin' = Yes
Removed '_' from variable name.
1 parent b21d3c7 commit 76cde8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Sitemap/Test/Unit/Model/SitemapTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class SitemapTest extends \PHPUnit_Framework_TestCase
5353
/**
5454
* @var \Magento\Store\Model\StoreManagerInterface|\PHPUnit_Framework_MockObject_MockObject
5555
*/
56-
private $_storeManagerMock;
56+
private $storeManagerMock;
5757

5858
/**
5959
* Set helper mocks, create resource model mock
@@ -487,7 +487,7 @@ function ($from, $to) {
487487
->method('getBaseUrl')
488488
->with($this->isType('string'), false)
489489
->willReturn('http://store.com/');
490-
$this->_storeManagerMock->expects($this->atLeastOnce())
490+
$this->storeManagerMock->expects($this->atLeastOnce())
491491
->method('getStore')
492492
->with(1)
493493
->willReturn($storeMock);
@@ -628,7 +628,7 @@ protected function _getModelConstructorArgs()
628628
)->disableOriginalConstructor()->getMock();
629629
$cmsFactory->expects($this->any())->method('create')->will($this->returnValue($this->_sitemapCmsPageMock));
630630

631-
$this->_storeManagerMock = $this->getMockBuilder(\Magento\Store\Model\StoreManagerInterface::class)
631+
$this->storeManagerMock = $this->getMockBuilder(\Magento\Store\Model\StoreManagerInterface::class)
632632
->setMethods(['getStore'])
633633
->getMockForAbstractClass();
634634

@@ -639,7 +639,7 @@ protected function _getModelConstructorArgs()
639639
'categoryFactory' => $categoryFactory,
640640
'productFactory' => $productFactory,
641641
'cmsFactory' => $cmsFactory,
642-
'storeManager' => $this->_storeManagerMock,
642+
'storeManager' => $this->storeManagerMock,
643643
'sitemapData' => $this->_helperMockSitemap,
644644
'filesystem' => $this->_filesystemMock
645645
]

0 commit comments

Comments
 (0)