Skip to content

Commit

Permalink
#8644: Sitemap bad urls: http//, but must bee https//
Browse files Browse the repository at this point in the history
 - merged with develop branch
  • Loading branch information
mcspronko committed Mar 2, 2017
1 parent 653bad2 commit d201703
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ public function testExecute(
->will($this->returnValue($blockTtl));
$this->_blockMock->expects($this->any())
->method('getUrl')
->with('page_cache/block/esi', ['blocks' => '[null]', 'handles' => '["default","catalog_product_view"]'])
->will($this->returnValue('page_cache/block/wrapesi/with/handles/and/other/stuff'));
->with('page_cache/block/esi', ['blocks' => '[null]', 'handles' => 'WyJkZWZhdWx0IiwiY2F0YWxvZ19wcm9kdWN0X3ZpZXciXQ=='])
->will($this->returnValue('page_cache/block/wrapesi/with/handles/WyJkZWZhdWx0IiwiY2F0YWxvZ19wcm9kdWN0X3ZpZXciXQ=='));
}
if ($scopeIsPrivate) {
$this->_blockMock->expects($this->once())
Expand Down Expand Up @@ -197,6 +197,10 @@ public function testExecuteWithBase64Encode()
->method('getBlock')
->will($this->returnValue($this->_blockMock));

$this->entitySpecificHandlesListMock->expects($this->any())
->method('getHandles')
->will($this->returnValue(['catalog_product_view_id_1']));

$this->_blockMock->expects($this->once())
->method('getData')
->with('ttl')
Expand Down Expand Up @@ -229,7 +233,7 @@ public function processLayoutRenderDataProvider()
true,
false,
360,
'<esi:include src="page_cache/block/wrapesi/with/handles/and/other/stuff" />',
'<esi:include src="page_cache/block/wrapesi/with/handles/WyJkZWZhdWx0IiwiY2F0YWxvZ19wcm9kdWN0X3ZpZXciXQ==" />',
],
'full_page type and Varnish enabled, public scope, ttl is not set' => [
true,
Expand Down

0 comments on commit d201703

Please sign in to comment.