View | Details | Raw Unified | Return to bug 18093
Collapse All | Expand All

(-)a/Koha/Objects.pm (-1 / +1 lines)
Lines 335-341 Currently count, pager, update and delete are covered. Link Here
335
sub AUTOLOAD {
335
sub AUTOLOAD {
336
    my ( $self, @params ) = @_;
336
    my ( $self, @params ) = @_;
337
337
338
    my @known_methods = qw( count pager update delete result_class single );
338
    my @known_methods = qw( count pager update delete result_class single get_column );
339
    my $method = our $AUTOLOAD;
339
    my $method = our $AUTOLOAD;
340
    $method =~ s/.*:://;
340
    $method =~ s/.*:://;
341
341
(-)a/t/db_dependent/Koha/Objects.t (-2 / +8 lines)
Lines 19-25 Link Here
19
19
20
use Modern::Perl;
20
use Modern::Perl;
21
21
22
use Test::More tests => 11;
22
use Test::More tests => 12;
23
use Test::Warn;
23
use Test::Warn;
24
24
25
use Koha::Authority::Types;
25
use Koha::Authority::Types;
Lines 127-132 subtest 'single' => sub { Link Here
127
    "Warning is presented if single is used for a result with multiple rows.";
127
    "Warning is presented if single is used for a result with multiple rows.";
128
};
128
};
129
129
130
subtest 'get_column' => sub {
131
    plan tests => 1;
132
    my @cities = Koha::Cities->search;
133
    my @city_names = map { $_->city_name } @cities;
134
    is_deeply( [ Koha::Cities->search->get_column('city_name')->all ], \@city_names, 'Koha::Objects->get_column should be allowed' );
135
};
136
130
subtest 'Exceptions' => sub {
137
subtest 'Exceptions' => sub {
131
    plan tests => 2;
138
    plan tests => 2;
132
139
133
- 

Return to bug 18093