diff --git a/modules/Bio/EnsEMBL/DBSQL/TranslationAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/TranslationAdaptor.pm index 3870054cf85a3ddd6d76fa7047cd08edbf61e44b..3ca3cbef6a7a428f4972869553c38e4df6126498 100644 --- a/modules/Bio/EnsEMBL/DBSQL/TranslationAdaptor.pm +++ b/modules/Bio/EnsEMBL/DBSQL/TranslationAdaptor.pm @@ -965,4 +965,18 @@ sub fetch_all { return \@translations; } + +# _tables +# Arg [1] : none +# Description: PROTECTED implementation of superclass abstract method. +# Returns the names, aliases of the tables to use for queries. +# Returntype : list of listrefs of strings +# Exceptions : none +# Caller : internal +# Status : Stable + +sub _tables { + return (['translation', 'tl']); +} + 1; diff --git a/modules/t/translation.t b/modules/t/translation.t index 03343f8fd366c1284b201fd77fe4af305dc4867c..dcf0c394a582736290b29d0d3a628621c582ee2f 100644 --- a/modules/t/translation.t +++ b/modules/t/translation.t @@ -338,4 +338,7 @@ ok(!scalar(@alt_tls)); $ta->species_id(1); } +# Test generic_count(), inherited method from BaseAdaptor +is($ta->generic_count(), @{$ta->list_dbIDs()}, "Number of features from generic_count is equal to the number of dbIDs from list_dbIDs"); + done_testing();