File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/internal/Magento/Framework/View/Test/Unit/Element Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ public function testToHtmlWhenModuleIsDisabled()
204
204
$ moduleName = 'Test ' ;
205
205
$ this ->block ->setData ('module_name ' , $ moduleName );
206
206
207
- $ this ->eventManagerMock ->expects ($ this ->exactly ( 2 ))
207
+ $ this ->eventManagerMock ->expects ($ this ->any ( ))
208
208
->method ('dispatch ' )
209
209
->with ('view_block_abstract_to_html_before ' , ['block ' => $ this ->block ]);
210
210
$ this ->scopeConfigMock ->expects ($ this ->once ())
@@ -239,7 +239,7 @@ public function testGetCacheLifetimeViaToHtml(
239
239
$ this ->block ->setData ('module_name ' , $ moduleName );
240
240
$ this ->block ->setData ('cache_lifetime ' , $ cacheLifetime );
241
241
242
- $ this ->eventManagerMock ->expects ($ this ->exactly ( 2 ))
242
+ $ this ->eventManagerMock ->expects ($ this ->any ( ))
243
243
->method ('dispatch ' )
244
244
->with ('view_block_abstract_to_html_before ' , ['block ' => $ this ->block ]);
245
245
$ this ->scopeConfigMock ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments