my @known_methods = qw( is_changed id in_storage get_column );
- carp "The method $method is not covered by tests or does not exist!" and return unless grep {/^$method$/} @known_methods;
+ Koha::Exceptions::Object::MethodNotCoveredByTests->throw( "The method $method is not covered by tests!" ) unless grep {/^$method$/} @known_methods;
my $r = eval { $self->_result->$method(@_) };
if ( $@ ) {