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

(-)a/t/db_dependent/Auth_with_ldap.t (-1 / +2 lines)
Lines 276-285 subtest 'checkpw_ldap tests' => sub { Link Here
276
        $welcome   = 0;
276
        $welcome   = 0;
277
277
278
        # replicate testing with checkpw
278
        # replicate testing with checkpw
279
        my $time_now = dt_from_string()->ymd . ' ' . dt_from_string()->hms;
279
        C4::Auth::checkpw( 'hola', password => 'hey' );
280
        C4::Auth::checkpw( 'hola', password => 'hey' );
280
        my $patron_replicated_from_auth = Koha::Patrons->search( { userid => 'hola' } )->next;
281
        my $patron_replicated_from_auth = Koha::Patrons->search( { userid => 'hola' } )->next;
281
        is(
282
        is(
282
            $patron_replicated_from_auth->updated_on, dt_from_string()->ymd . ' ' . dt_from_string()->hms,
283
            $patron_replicated_from_auth->updated_on, $time_now,
283
            "updated_on correctly saved on newly created user"
284
            "updated_on correctly saved on newly created user"
284
        );
285
        );
285
286
(-)a/t/db_dependent/Auth_with_shibboleth.t (-2 / +2 lines)
Lines 309-314 subtest "checkpw_shib tests" => sub { Link Here
309
    $ENV{'emailpro'} = 'me@myemail.com';
309
    $ENV{'emailpro'} = 'me@myemail.com';
310
    $ENV{branchcode} = $library->branchcode;      # needed since T::D::C does no longer hides the FK constraint
310
    $ENV{branchcode} = $library->branchcode;      # needed since T::D::C does no longer hides the FK constraint
311
311
312
    my $time_now = dt_from_string()->ymd . ' ' . dt_from_string()->hms;
312
    checkpw($shib_login);
313
    checkpw($shib_login);
313
    ok my $new_user_autocreated = $schema->resultset('Borrower')->search( { 'userid' => 'test43210' }, { rows => 1 } ),
314
    ok my $new_user_autocreated = $schema->resultset('Borrower')->search( { 'userid' => 'test43210' }, { rows => 1 } ),
314
        "new user found";
315
        "new user found";
Lines 316-322 subtest "checkpw_shib tests" => sub { Link Here
316
    my $rec_autocreated = $new_user_autocreated->next;
317
    my $rec_autocreated = $new_user_autocreated->next;
317
    is_deeply(
318
    is_deeply(
318
        [ map { $rec_autocreated->$_ } qw/updated_on/ ],
319
        [ map { $rec_autocreated->$_ } qw/updated_on/ ],
319
        [ dt_from_string()->ymd . ' ' . dt_from_string()->hms ],
320
        [$time_now],
320
        'updated_on correctly saved on newly created user'
321
        'updated_on correctly saved on newly created user'
321
    );
322
    );
322
};
323
};
323
- 

Return to bug 36822