mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 06:43:01 +08:00
parent
774dd10bf5
commit
7096da722e
|
@ -26,6 +26,17 @@ class MiddlewareTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @test
|
||||||
|
*/
|
||||||
|
public function custom_header_is_not_present_by_default()
|
||||||
|
{
|
||||||
|
$response = $this->send($this->request('GET', '/'));
|
||||||
|
|
||||||
|
$this->assertEquals(200, $response->getStatusCode());
|
||||||
|
$this->assertArrayNotHasKey('X-First-Test-Middleware', $response->getHeaders());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user