Skip to content

Commit 949cdba

Browse files
committed
MAGETWO-35324: Success message for contact us form does not disappear even after closing browser
1 parent e5ee92e commit 949cdba

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

app/code/Magento/Contact/Test/Unit/Controller/Index/IndexTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -93,31 +93,9 @@ public function setUp()
9393

9494
public function testExecute()
9595
{
96-
$layout = $this->getMock(
97-
'\Magento\Framework\View\Layout',
98-
['getBlock', 'initMessages'],
99-
[],
100-
'',
101-
false
102-
);
103-
$block = $this->getMockForAbstractClass(
104-
'\Magento\Framework\View\Element\AbstractBlock',
105-
['setFormAction'],
106-
'',
107-
false
108-
);
109-
$layout->expects($this->once())
110-
->method('getBlock')
111-
->with('contactForm')
112-
->will($this->returnValue($block));
113-
11496
$this->_view->expects($this->once())
11597
->method('loadLayout');
11698

117-
$this->_view->expects($this->exactly(1))
118-
->method('getLayout')
119-
->will($this->returnValue($layout));
120-
12199
$this->_view->expects($this->once())
122100
->method('renderLayout');
123101

app/code/Magento/Contact/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"php": "~5.5.0|~5.6.0|~7.0.0",
66
"magento/module-config": "1.0.0-beta",
77
"magento/module-store": "1.0.0-beta",
8+
"magento/module-backend": "1.0.0-beta",
89
"magento/module-customer": "1.0.0-beta",
910
"magento/module-cms": "1.0.0-beta",
1011
"magento/framework": "1.0.0-beta",

0 commit comments

Comments
 (0)