Flugg\Responder\Tests\TestCase::storeModel PHP Method

storeModel() protected method

Stores an actual instance of an adjustable model to the database.
protected storeModel ( Model $model, array $attributes = [] ) : Model
$model Illuminate\Database\Eloquent\Model
$attributes array
return Illuminate\Database\Eloquent\Model
    protected function storeModel(Model $model, array $attributes = []) : Model
    {
        return $model->create(array_merge(['name' => 'Mango', 'price' => 10, 'is_rotten' => false], $attributes));
    }