Skip to content

Commit

Permalink
Added test for get with with default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark van den Broek committed Oct 4, 2017
1 parent 1fece9b commit 5339052
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Support/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ public function first_with_default()
$this->assertEquals('default', $result);
}

/** @test */
public function get_with_default()
{
$data = new Collection;
$result = $data->get('foo', 'default');
$this->assertEquals('default', $result);
}

/** @test */
public function last_returns_last_item_in_collection()
{
Expand Down

0 comments on commit 5339052

Please sign in to comment.