Bug 33161: (QA follow-up) Fix api_strings_mapping inconsistency

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2023-03-10 11:33:02 -03:00
parent 546c47ab3f
commit 65711c9dab
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 5 additions and 5 deletions

View file

@ -311,10 +311,10 @@ subtest "to_api() tests" => sub {
}
};
# mock Koha::Item so it implements 'api_strings_mapping'
# mock Koha::Item so it implements 'strings_map'
my $item_mock = Test::MockModule->new('Koha::Item');
$item_mock->mock(
'api_strings_mapping',
'strings_map',
sub {
return $_strings;
}
@ -475,7 +475,7 @@ subtest "to_api() tests" => sub {
my $city_mock = Test::MockModule->new('Koha::City');
$city_mock->mock(
'api_strings_mapping',
'strings_map',
sub {
my ( $self, $params ) = @_;

View file

@ -673,7 +673,7 @@ subtest 'objects.find helper with expanded authorised values' => sub {
my $city_class = Test::MockModule->new('Koha::City');
$city_class->mock(
'api_strings_mapping',
'strings_map',
sub {
my ($self, $params) = @_;
use Koha::AuthorisedValues;
@ -786,7 +786,7 @@ subtest 'objects.search helper with expanded authorised values' => sub {
my $city_class = Test::MockModule->new('Koha::City');
$city_class->mock(
'api_strings_mapping',
'strings_map',
sub {
my ($self, $params) = @_;
use Koha::AuthorisedValues;