Skip to content

Commit

Permalink
Added a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Alfheim committed Mar 25, 2016
1 parent e61287f commit 03f5fc8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/FormRequestTest.php
Expand Up @@ -101,6 +101,16 @@ public function it_should_do_nothing_when_no_rules()
$this->assertEquals($expected, $request->all());
}

/** @test */
public function it_should_do_noting_when_no_data()
{
$request = $this->newFormRequest(YellRequest::class, []);

$expected = [];

$this->assertEquals($expected, $request->all());
}

private function newFormRequest($kind, array $input)
{
$base = Request::create('foo', 'POST', $input);
Expand Down

0 comments on commit 03f5fc8

Please sign in to comment.