+ $mappings[0]->{sort} = 0;
+ $mappings[1]->{sort} = undef;
+
+ $see->get_elasticsearch_mappings(); #sort_fields will call this and use the actual db values unless we call it first
+ $result = $see->get_fixer_rules();
+ is( $result->[0], q{marc_map('} . $mappings[0]->{marc_field} . q{','} . $mappings[0]->{name} . q{.$append', -split => 1)});
+ is( $result->[1], q{marc_map('} . $mappings[1]->{marc_field} . q{','} . $mappings[1]->{name} . q{.$append', -split => 1)});
+ is( $result->[2], q{marc_map('} . $mappings[1]->{marc_field} . q{','} . $mappings[1]->{name} . q{__sort.$append', -split => 1)});
+ is( $result->[3], q{move_field(_id,es_id)});
+