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

(-)a/t/db_dependent/Koha/Object.t (-3 / +3 lines)
Lines 311-320 subtest "to_api() tests" => sub { Link Here
311
        }
311
        }
312
    };
312
    };
313
313
314
    # mock Koha::Item so it implements 'api_strings_mapping'
314
    # mock Koha::Item so it implements 'strings_map'
315
    my $item_mock = Test::MockModule->new('Koha::Item');
315
    my $item_mock = Test::MockModule->new('Koha::Item');
316
    $item_mock->mock(
316
    $item_mock->mock(
317
        'api_strings_mapping',
317
        'strings_map',
318
        sub {
318
        sub {
319
            return $_strings;
319
            return $_strings;
320
        }
320
        }
Lines 475-481 subtest "to_api() tests" => sub { Link Here
475
475
476
        my $city_mock = Test::MockModule->new('Koha::City');
476
        my $city_mock = Test::MockModule->new('Koha::City');
477
        $city_mock->mock(
477
        $city_mock->mock(
478
            'api_strings_mapping',
478
            'strings_map',
479
            sub {
479
            sub {
480
                my ( $self, $params ) = @_;
480
                my ( $self, $params ) = @_;
481
481
(-)a/t/db_dependent/Koha/REST/Plugin/Objects.t (-3 / +2 lines)
Lines 673-679 subtest 'objects.find helper with expanded authorised values' => sub { Link Here
673
673
674
    my $city_class = Test::MockModule->new('Koha::City');
674
    my $city_class = Test::MockModule->new('Koha::City');
675
    $city_class->mock(
675
    $city_class->mock(
676
        'api_strings_mapping',
676
        'strings_map',
677
        sub {
677
        sub {
678
            my ($self, $params) = @_;
678
            my ($self, $params) = @_;
679
            use Koha::AuthorisedValues;
679
            use Koha::AuthorisedValues;
Lines 786-792 subtest 'objects.search helper with expanded authorised values' => sub { Link Here
786
786
787
    my $city_class = Test::MockModule->new('Koha::City');
787
    my $city_class = Test::MockModule->new('Koha::City');
788
    $city_class->mock(
788
    $city_class->mock(
789
        'api_strings_mapping',
789
        'strings_map',
790
        sub {
790
        sub {
791
            my ($self, $params) = @_;
791
            my ($self, $params) = @_;
792
            use Koha::AuthorisedValues;
792
            use Koha::AuthorisedValues;
793
- 

Return to bug 33161