Browse Source

Bug 22544: (QA follow-up) Fix spelling

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
master
Josef Moravec 2 years ago
committed by Jonathan Druart
parent
commit
ac70d7cfae
  1. 18
      t/db_dependent/Koha/News.t

18
t/db_dependent/Koha/News.t

@ -71,7 +71,7 @@ subtest '->is_expired' => sub {
my $today = dt_from_string;
my $yesterday = dt_from_string->add( days => -1 );
my $tommorow = dt_from_string->add( days => 1 );
my $tomorrow = dt_from_string->add( days => 1 );
my $new_today = $builder->build_object({
class => 'Koha::News',
value => {
@ -87,7 +87,7 @@ subtest '->is_expired' => sub {
my $new_not_expired = $builder->build_object({
class => 'Koha::News',
value => {
expirationdate => $tommorow,
expirationdate => $tomorrow,
}
});
@ -151,7 +151,7 @@ subtest '->search_for_display' => sub {
my $today = dt_from_string;
my $yesterday = dt_from_string->add( days => -1 );
my $tommorow = dt_from_string->add( days => 1 );
my $tomorrow = dt_from_string->add( days => 1 );
my $library1 = $builder->build_object({ class => 'Koha::Libraries' });
my $library2 = $builder->build_object({ class => 'Koha::Libraries' });
@ -168,7 +168,7 @@ subtest '->search_for_display' => sub {
my $new_not_expired = $builder->build_object({
class => 'Koha::News',
value => {
expirationdate => $tommorow,
expirationdate => $tomorrow,
timestamp => $today,
lang => '',
branchcode => undef,
@ -178,8 +178,8 @@ subtest '->search_for_display' => sub {
my $new_not_active = $builder->build_object({
class => 'Koha::News',
value => {
expirationdate => $tommorow,
timestamp => $tommorow,
expirationdate => $tomorrow,
timestamp => $tomorrow,
lang => '',
branchcode => undef,
number => 3,
@ -188,7 +188,7 @@ subtest '->search_for_display' => sub {
my $new_slip= $builder->build_object({
class => 'Koha::News',
value => {
expirationdate => $tommorow,
expirationdate => $tomorrow,
timestamp => $today,
lang => 'slip',
branchcode => $library1->branchcode,
@ -198,7 +198,7 @@ subtest '->search_for_display' => sub {
my $new_intra = $builder->build_object({
class => 'Koha::News',
value => {
expirationdate => $tommorow,
expirationdate => $tomorrow,
timestamp => $today,
lang => 'koha',
branchcode => $library2->branchcode,
@ -208,7 +208,7 @@ subtest '->search_for_display' => sub {
my $new_intra2 = $builder->build_object({
class => 'Koha::News',
value => {
expirationdate => $tommorow,
expirationdate => $tomorrow,
timestamp => $today,
lang => 'koha',
branchcode => undef,

Loading…
Cancel
Save