diff --git a/tests/RequestTest.php b/tests/RequestTest.php index ec45a632c..a1ba2e0a5 100644 --- a/tests/RequestTest.php +++ b/tests/RequestTest.php @@ -6,6 +6,20 @@ class RequestTest extends TestCase { + /** @test */ + public function it_can_get_request_information() + { + $this->app['router']->get('hello', ['uses' => function () { + return 'hello world'; + }]); + + $this->call('GET', 'hello?foo=bar'); + + $this->assertSame('http://localhost/hello?foo=bar', url()->full()); + $this->assertSame('http://localhost/hello', url()->current()); + $this->assertSame(['foo' => 'bar'], request()->all()); + } + /** @test */ public function it_flashes_request_values() {