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

(-)a/t/db_dependent/Auth.t (-2 / +2 lines)
Lines 526-533 subtest 'get_template_and_user' => sub { # Tests for the language URL paramet Link Here
526
    t::lib::Mocks::mock_preference( 'EnableOpacSearchHistory', 1 );
526
    t::lib::Mocks::mock_preference( 'EnableOpacSearchHistory', 1 );
527
527
528
    # Enable es-ES for the OPAC and staff interfaces
528
    # Enable es-ES for the OPAC and staff interfaces
529
    t::lib::Mocks::mock_preference( 'OPACLanguages', 'en,es-ES' );
529
    t::lib::Mocks::mock_preference( 'OPACLanguages',           'en,es-ES' );
530
    t::lib::Mocks::mock_preference( 'language',      'en,es-ES' );
530
    t::lib::Mocks::mock_preference( 'StaffInterfaceLanguages', 'en,es-ES' );
531
531
532
    # we need a session cookie
532
    # we need a session cookie
533
    $ENV{"SERVER_PORT"} = 80;
533
    $ENV{"SERVER_PORT"} = 80;
(-)a/t/db_dependent/Koha/ItemTypes.t (-2 / +2 lines)
Lines 107-114 $type = Koha::ItemTypes->find( $child2->itemtype ); Link Here
107
ok( defined($type), 'second result' );
107
ok( defined($type), 'second result' );
108
is_deeply( $type->unblessed, $child2->unblessed, "We got back the same object" );
108
is_deeply( $type->unblessed, $child2->unblessed, "We got back the same object" );
109
109
110
t::lib::Mocks::mock_preference( 'language',      'en' );
110
t::lib::Mocks::mock_preference( 'StaffInterfaceLanguages', 'en' );
111
t::lib::Mocks::mock_preference( 'OPACLanguages', 'en' );
111
t::lib::Mocks::mock_preference( 'OPACLanguages',           'en' );
112
my $itemtypes = Koha::ItemTypes->search_with_localization;
112
my $itemtypes = Koha::ItemTypes->search_with_localization;
113
is( $itemtypes->count, $initial_count + 4, 'We added 4 item types' );
113
is( $itemtypes->count, $initial_count + 4, 'We added 4 item types' );
114
my $first_itemtype = $itemtypes->next;
114
my $first_itemtype = $itemtypes->next;
(-)a/t/db_dependent/Koha/SharedContent.t (-2 / +1 lines)
Lines 153-159 my $subscription = $builder->build( Link Here
153
153
154
t::lib::Mocks::mock_userenv( { patron => $loggedinuser } );
154
t::lib::Mocks::mock_userenv( { patron => $loggedinuser } );
155
155
156
t::lib::Mocks::mock_preference( 'language', 'en' );
156
t::lib::Mocks::mock_preference( 'StaffInterfaceLanguages', 'en' );
157
157
158
$post_request = 1;
158
$post_request = 1;
159
$result       = Koha::SharedContent::send_entity(
159
$result       = Koha::SharedContent::send_entity(
160
- 

Return to bug 39745