public function test_update()
{
$model = m::mock(Config::class);
$request = m::mock(UpdateRequest::class);
$request->shouldReceive('all')->once()->andReturn([]);
$repo = m::mock(ConfigRepository::class);
$repo->shouldReceive('update')->once()->andReturn($model);
App::instance(UpdateRequest::class, $request);
App::instance(ConfigRepository::class, $repo);
$controller = App::make(ConfigController::class);
$update = $controller->update($request, 1);
$this->assertTrue($update instanceof Config);
}