Skip to content

Commit 8507480

Browse files
AC-3525: Customer Product Review fix
* Fix product review
1 parent dda3157 commit 8507480

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

app/code/Magento/Cms/Test/Unit/Controller/Noroute/IndexTest.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,32 @@ class IndexTest extends TestCase
2929
/**
3030
* @var Index
3131
*/
32-
protected $_controller;
32+
protected Index $_controller;
3333

3434
/**
3535
* @var MockObject
3636
*/
37-
protected $_cmsHelperMock;
37+
protected MockObject $_cmsHelperMock;
3838

3939
/**
4040
* @var MockObject
4141
*/
42-
protected $_requestMock;
42+
protected MockObject $_requestMock;
4343

4444
/**
4545
* @var ForwardFactory|MockObject
4646
*/
47-
protected $forwardFactoryMock;
47+
protected ForwardFactory|MockObject $forwardFactoryMock;
4848

4949
/**
5050
* @var Forward|MockObject
5151
*/
52-
protected $forwardMock;
52+
protected Forward|MockObject $forwardMock;
5353

5454
/**
5555
* @var Page|MockObject
5656
*/
57-
protected $resultPageMock;
57+
protected MockObject|Page $resultPageMock;
5858

5959
/**
6060
* @inheritdoc
@@ -123,6 +123,10 @@ public function testExecuteResultPage(): void
123123
->method('setHeader')
124124
->with('Status', '404 File not found')
125125
->willReturn($this->resultPageMock);
126+
$this->resultPageMock
127+
->method('setHeader')
128+
->with('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0', true)
129+
->willReturn($this->resultPageMock);
126130
$this->_cmsHelperMock->expects(
127131
$this->once()
128132
)->method(

0 commit comments

Comments
 (0)