public function it_dosent_execute_a_delete_statement_if_model_document_not_indexed()
{
$connection = \Mockery::mock(Connection::class);
$model = new PersistenceModelTest();
$model->exists = true;
$connection->shouldReceive('existsStatement')->once()->with(['id' => null, 'type' => 'foo', 'index' => 'bar'])->andReturn(false);
$connection->shouldNotReceive('deleteStatement');
$persistence = new EloquentPersistence($connection);
$persistence->model($model);
$persistence->delete();
}