1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 21:50:50 +02:00

Add a baseline test for the middleware extender

Refs #2017.
This commit is contained in:
Franz Liedke
2020-03-06 15:05:07 +01:00
parent 9f8ee7dc94
commit 4b45ce0a58

View File

@@ -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
*/ */