File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
app/code/Magento/Customer/Test/Unit/Controller/Account Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -439,6 +439,19 @@ public function testSuccessRedirect(
439
439
)
440
440
->willReturn ($ isSetFlag );
441
441
442
+ $ cookieMetadataManager = $ this ->getMockBuilder (\Magento \Framework \Stdlib \Cookie \PhpCookieManager::class)
443
+ ->disableOriginalConstructor ()
444
+ ->getMock ();
445
+ $ cookieMetadataManager ->expects ($ this ->once ())
446
+ ->method ('getCookie ' )
447
+ ->with ('mage-cache-sessid ' )
448
+ ->willReturn (false );
449
+
450
+ $ refClass = new \ReflectionClass (Confirm::class);
451
+ $ refProperty = $ refClass ->getProperty ('cookieMetadataManager ' );
452
+ $ refProperty ->setAccessible (true );
453
+ $ refProperty ->setValue ($ this ->model , $ cookieMetadataManager );
454
+
442
455
$ this ->model ->execute ();
443
456
}
444
457
You can’t perform that action at this time.
0 commit comments