Skip to content

Commit 121ef86

Browse files
Anupam.BhattAnupam.Bhatt
authored andcommitted
33465-Fixed unit test case of ProcessLayoutRenderElement
1 parent 24cf9d0 commit 121ef86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/PageCache/Test/Unit/Observer/ProcessLayoutRenderElementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testExecute(
151151
->method('isScopePrivate')
152152
->willReturn($scopeIsPrivate);
153153
}
154-
$this->_configMock->expects($this->any())->method('getType')->willReturn($varnishIsEnabled);
154+
$this->_configMock->expects($this->any())->method('getType')->willReturn(Config::VARNISH);
155155
}
156156
$this->_model->execute($this->_observerMock);
157157

@@ -210,7 +210,7 @@ public function testExecuteWithBase64Encode()
210210
->method('getNameInLayout')
211211
->willReturn('testBlockName');
212212

213-
$this->_configMock->expects($this->any())->method('getType')->willReturn(true);
213+
$this->_configMock->expects($this->any())->method('getType')->willReturn(Config::VARNISH);
214214

215215
$this->_model->execute($this->_observerMock);
216216

0 commit comments

Comments
 (0)