diff --git a/tests/Support/CollectionTest.php b/tests/Support/CollectionTest.php index 3513ce5..154f1de 100644 --- a/tests/Support/CollectionTest.php +++ b/tests/Support/CollectionTest.php @@ -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() {