Skip to content

Commit 0b6b056

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

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ class IndexTest extends TestCase
4444
/**
4545
* @var ForwardFactory|MockObject
4646
*/
47-
protected ForwardFactory|MockObject $forwardFactoryMock;
47+
protected $forwardFactoryMock;
4848

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

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

5959
/**
6060
* @inheritdoc
@@ -119,14 +119,14 @@ public function testExecuteResultPage(): void
119119
->method('setStatusHeader')
120120
->with(404, '1.1', 'Not Found')
121121
->willReturn($this->resultPageMock);
122+
122123
$this->resultPageMock
123124
->method('setHeader')
124-
->with('Status', '404 File not found')
125-
->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);
125+
->withConsecutive(
126+
['Status', '404 File not found'],
127+
['Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0']
128+
)->willReturn($this->resultPageMock);
129+
130130
$this->_cmsHelperMock->expects(
131131
$this->once()
132132
)->method(

0 commit comments

Comments
 (0)