@@ -499,7 +499,7 @@ public function testRunDoesBefore()
499499 $ uri = 'admin/foo/bar ' ;
500500 $ request = $ filters ->run ($ uri , 'before ' );
501501
502- $ this ->assertSame ('http://google.com ' , $ request ->url );
502+ $ this ->assertSame ('http://google.com ' , $ request ->getBody () );
503503 }
504504
505505 public function testRunDoesAfter ()
@@ -519,7 +519,7 @@ public function testRunDoesAfter()
519519 $ uri = 'admin/foo/bar ' ;
520520 $ response = $ filters ->run ($ uri , 'after ' );
521521
522- $ this ->assertSame ('http://google.com ' , $ response ->csp );
522+ $ this ->assertSame ('http://google.com ' , $ response ->getBody () );
523523 }
524524
525525 public function testShortCircuit ()
@@ -540,7 +540,7 @@ public function testShortCircuit()
540540 $ response = $ filters ->run ($ uri , 'before ' );
541541
542542 $ this ->assertInstanceOf (ResponseInterface::class, $ response );
543- $ this ->assertSame ('http://google.com ' , $ response ->csp );
543+ $ this ->assertSame ('http://google.com ' , $ response ->getBody () );
544544 }
545545
546546 public function testOtherResult ()
@@ -1103,8 +1103,8 @@ public function testFilterAliasMultiple()
11031103 $ uri = 'admin/foo/bar ' ;
11041104 $ request = $ filters ->run ($ uri , 'before ' );
11051105
1106- $ this ->assertSame ('http://exampleMultipleURL.com ' , $ request ->url );
1107- $ this ->assertSame ('http://exampleMultipleCSP.com ' , $ request ->csp );
1106+ $ this ->assertSame ('http://exampleMultipleURL.com ' , $ request ->header ( ' x- url' )-> getValue () );
1107+ $ this ->assertSame ('http://exampleMultipleCSP.com ' , $ request ->header ( ' x- csp' )-> getValue () );
11081108 }
11091109
11101110 public function testFilterClass ()
0 commit comments