Bug 33161: (QA follow-up) Fix api_strings_mapping inconsistency
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
546c47ab3f
commit
65711c9dab
2 changed files with 5 additions and 5 deletions
|
@ -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 ) = @_;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue