send( $this->request('GET', '/') ); $this->assertEquals(200, $response->getStatusCode()); $this->assertArrayHasKey('Referrer-Policy', $response->getHeaders()); } /** * @test */ public function has_default_referer_policy() { $response = $this->send( $this->request('GET', '/') ); $this->assertEquals(200, $response->getStatusCode()); $this->assertEquals('same-origin', $response->getHeader('Referrer-Policy')[0]); } }