File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ $browser
227
227
->assertRedirected() // 3xx status code
228
228
->assertHeaderEquals('Content-Type', 'text/html; charset=UTF-8')
229
229
->assertHeaderContains('Content-Type', 'html')
230
+ ->assertHeaderEquals('X-Not-Present-Header', null)
230
231
231
232
// helpers for quickly checking the content type
232
233
->assertJson()
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ final public function assertRedirected(): self
414
414
/**
415
415
* @return static
416
416
*/
417
- final public function assertHeaderEquals (string $ header , string $ expected ): self
417
+ final public function assertHeaderEquals (string $ header , ? string $ expected ): self
418
418
{
419
419
$ this ->session ()->assert ()->responseHeaderEquals ($ header , $ expected );
420
420
Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ public function response_header_assertions(): void
233
233
->visit ('/page1 ' )
234
234
->assertHeaderEquals ('Content-Type ' , 'text/html; charset=UTF-8 ' )
235
235
->assertHeaderContains ('Content-Type ' , 'text/html ' )
236
+ ->assertHeaderEquals ('X-Not-Present-Header ' , null )
236
237
;
237
238
}
238
239
You can’t perform that action at this time.
0 commit comments