From b9832940c2ba35965ac8142f4b12205d5bcdaf35 Mon Sep 17 00:00:00 2001
From: Magali Ruffier <mr6@ebi.ac.uk>
Date: Thu, 5 Dec 2013 16:45:36 +0000
Subject: [PATCH] add test to check multiple mappings

---
 modules/t/coordSystemAdaptor.t | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/t/coordSystemAdaptor.t b/modules/t/coordSystemAdaptor.t
index b536802d26..4c76a752da 100644
--- a/modules/t/coordSystemAdaptor.t
+++ b/modules/t/coordSystemAdaptor.t
@@ -198,6 +198,10 @@ is( $new_path->[1]->name, 'clone', "Component is clone");
 my $new_paths2 = $csa->store_mapping_path( $cs, $cln_cs );
 is( @{$new_paths2}, 0, "No mapping path was added" ); # Should not update second time round
 
+my $new_paths3 = $csa->store_multiple_mapping_path($cs, $ctg_cs);
+is( @{$new_paths3}, 1, "Added a multiple mapping path");
+is( $new_paths3->[0], "newsystem:NCBI35#contig", "Multiple mapping between newsystem and clone");
+
 #
 # Do some inserting of mock coord systems and 
 # do version retrieval
-- 
GitLab