Lines 995-1001
subtest 'Return same values as DBIx::Class' => sub {
Link Here
|
995 |
$patrons_us->update({ surname => 'foo' }); # Koha::Patron->store is supposed to uppercase the surnames |
995 |
$patrons_us->update({ surname => 'foo' }); # Koha::Patron->store is supposed to uppercase the surnames |
996 |
is( $patrons_us->search({ surname => 'FOO' })->count, 2, 'Koha::Patron->store is hit' ); |
996 |
is( $patrons_us->search({ surname => 'FOO' })->count, 2, 'Koha::Patron->store is hit' ); |
997 |
|
997 |
|
998 |
$patrons_us->update({ surname => 'foo', no_triggers => 1 }); # The surnames won't be uppercase as we won't hit Koha::Patron->store |
998 |
$patrons_us->update({ surname => 'foo' }, { no_triggers => 1 }); # The surnames won't be uppercase as we won't hit Koha::Patron->store |
999 |
is( $patrons_us->search({ surname => 'foo' })->count, 2, 'Koha::Patron->store is not hit'); |
999 |
is( $patrons_us->search({ surname => 'foo' })->count, 2, 'Koha::Patron->store is not hit'); |
1000 |
|
1000 |
|
1001 |
}; |
1001 |
}; |
1002 |
- |
|
|