Skip to content

Commit 79462ab

Browse files
committed
MAGETWO-56556: [GITHUB PR#3779] Add dispatching of view_block_abstract_to_html_after event
- fix Unit tests
1 parent d410155 commit 79462ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/View/Test/Unit/Element/AbstractBlockTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function testToHtmlWhenModuleIsDisabled()
204204
$moduleName = 'Test';
205205
$this->block->setData('module_name', $moduleName);
206206

207-
$this->eventManagerMock->expects($this->exactly(2))
207+
$this->eventManagerMock->expects($this->any())
208208
->method('dispatch')
209209
->with('view_block_abstract_to_html_before', ['block' => $this->block]);
210210
$this->scopeConfigMock->expects($this->once())
@@ -239,7 +239,7 @@ public function testGetCacheLifetimeViaToHtml(
239239
$this->block->setData('module_name', $moduleName);
240240
$this->block->setData('cache_lifetime', $cacheLifetime);
241241

242-
$this->eventManagerMock->expects($this->exactly(2))
242+
$this->eventManagerMock->expects($this->any())
243243
->method('dispatch')
244244
->with('view_block_abstract_to_html_before', ['block' => $this->block]);
245245
$this->scopeConfigMock->expects($this->once())

0 commit comments

Comments
 (0)