@@ -464,34 +464,34 @@ public function changes_content_type_to_xml()
464464 {
465465 $ this ->createPage ('about ' , ['with ' => ['content_type ' => 'xml ' ]]);
466466
467- // Laravel adds utf-8 if the content-type starts with text/
468- $ this ->get ('about ' )->assertHeader ( ' Content-Type ' , ' text/xml; charset=UTF -8 ' );
467+ // Symfony adds utf-8 if the content-type starts with text/
468+ $ this ->get ('about ' )->assertContentType ( ' text/xml; charset=utf -8 ' );
469469 }
470470
471471 #[Test]
472472 public function changes_content_type_to_atom ()
473473 {
474474 $ this ->createPage ('about ' , ['with ' => ['content_type ' => 'atom ' ]]);
475475
476- // Laravel adds utf-8 if the content-type starts with text/
477- $ this ->get ('about ' )->assertHeader ( ' Content-Type ' , ' application/atom+xml; charset=UTF -8 ' );
476+ // Symfony adds utf-8 if the content-type starts with text/
477+ $ this ->get ('about ' )->assertContentType ( ' application/atom+xml; charset=utf -8 ' );
478478 }
479479
480480 #[Test]
481481 public function changes_content_type_to_json ()
482482 {
483483 $ this ->createPage ('about ' , ['with ' => ['content_type ' => 'json ' ]]);
484484
485- $ this ->get ('about ' )->assertHeader ( ' Content-Type ' , 'application/json ' );
485+ $ this ->get ('about ' )->assertContentType ( 'application/json ' );
486486 }
487487
488488 #[Test]
489489 public function changes_content_type_to_text ()
490490 {
491491 $ this ->createPage ('about ' , ['with ' => ['content_type ' => 'text ' ]]);
492492
493- // Laravel adds utf-8 if the content-type starts with text/
494- $ this ->get ('about ' )->assertHeader ( ' Content-Type ' , ' text/plain; charset=UTF -8 ' );
493+ // Symfony adds utf-8 if the content-type starts with text/
494+ $ this ->get ('about ' )->assertContentType ( ' text/plain; charset=utf -8 ' );
495495 }
496496
497497 #[Test]
@@ -504,7 +504,7 @@ public function xml_antlers_template_with_xml_layout_will_use_both_and_change_th
504504
505505 $ response = $ this
506506 ->get ('about ' )
507- ->assertHeader ( ' Content-Type ' , ' text/xml; charset=UTF -8 ' );
507+ ->assertContentType ( ' text/xml; charset=utf -8 ' );
508508
509509 $ this ->assertEquals ('<?xml ?><foo></foo> ' , $ response ->getContent ());
510510 }
@@ -519,7 +519,7 @@ public function xml_antlers_template_with_non_xml_layout_will_change_content_typ
519519
520520 $ response = $ this
521521 ->get ('about ' )
522- ->assertHeader ( ' Content-Type ' , ' text/xml; charset=UTF -8 ' );
522+ ->assertContentType ( ' text/xml; charset=utf -8 ' );
523523
524524 $ this ->assertEquals ('<foo></foo> ' , $ response ->getContent ());
525525 }
@@ -534,7 +534,7 @@ public function xml_antlers_layout_will_change_the_content_type()
534534
535535 $ response = $ this
536536 ->get ('about ' )
537- ->assertHeader ( ' Content-Type ' , ' text/xml; charset=UTF -8 ' );
537+ ->assertContentType ( ' text/xml; charset=utf -8 ' );
538538
539539 $ this ->assertEquals ('<?xml ?><foo></foo> ' , $ response ->getContent ());
540540 }
@@ -551,7 +551,7 @@ public function xml_blade_template_will_not_change_content_type()
551551
552552 $ response = $ this
553553 ->get ('about ' )
554- ->assertHeader ( ' Content-Type ' , ' text/html; charset=UTF -8 ' );
554+ ->assertContentType ( ' text/html; charset=utf -8 ' );
555555
556556 $ this ->assertEquals ('<foo></foo> ' , $ response ->getContent ());
557557 }
@@ -566,7 +566,7 @@ public function xml_template_with_custom_content_type_does_not_change_to_xml()
566566
567567 $ this
568568 ->get ('about ' )
569- ->assertHeader ( ' Content-Type ' , 'application/json ' );
569+ ->assertContentType ( 'application/json ' );
570570 }
571571
572572 #[Test]
0 commit comments