public function it_updates_a_model_document_data()
{
$connection = \Mockery::mock(Connection::class);
$model = new PersistenceModelTest();
$model->exists = true;
$connection->shouldReceive('updateStatement')->once()->with(['id' => null, 'type' => 'foo', 'index' => 'bar', 'body' => ['doc' => ['foo' => 'bar']]]);
$persistence = new EloquentPersistence($connection);
$persistence->model($model);
$persistence->update();
}