mirror of
https://github.com/flarum/core.git
synced 2025-07-31 21:50:50 +02:00
@@ -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
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user