@@ -44,17 +44,17 @@ class IndexTest extends TestCase
44
44
/**
45
45
* @var ForwardFactory|MockObject
46
46
*/
47
- protected ForwardFactory | MockObject $ forwardFactoryMock ;
47
+ protected $ forwardFactoryMock ;
48
48
49
49
/**
50
50
* @var Forward|MockObject
51
51
*/
52
- protected Forward | MockObject $ forwardMock ;
52
+ protected $ forwardMock ;
53
53
54
54
/**
55
55
* @var Page|MockObject
56
56
*/
57
- protected MockObject | Page $ resultPageMock ;
57
+ protected $ resultPageMock ;
58
58
59
59
/**
60
60
* @inheritdoc
@@ -119,14 +119,14 @@ public function testExecuteResultPage(): void
119
119
->method ('setStatusHeader ' )
120
120
->with (404 , '1.1 ' , 'Not Found ' )
121
121
->willReturn ($ this ->resultPageMock );
122
+
122
123
$ this ->resultPageMock
123
124
->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
+
130
130
$ this ->_cmsHelperMock ->expects (
131
131
$ this ->once ()
132
132
)->method (
0 commit comments