From 0d65cd102261d472ef491d2a6de7a1581e035446 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Fri, 11 Nov 2016 11:23:40 +0000 Subject: [PATCH] [SIGNED-OFF]Bug 17558: QA followup - use TestBuilder for creating patron Signed-off-by: Hector Castro --- t/db_dependent/Koha/Patron/Messages.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Patron/Messages.t b/t/db_dependent/Koha/Patron/Messages.t index 27164e4..fc69c0f 100644 --- a/t/db_dependent/Koha/Patron/Messages.t +++ b/t/db_dependent/Koha/Patron/Messages.t @@ -37,7 +37,7 @@ $schema->storage->txn_begin; my $builder = t::lib::TestBuilder->new; my $library = $builder->build( { source => 'Branch' } ); my $patron = $builder->build( { source => 'Borrower', values => { branchcode => $library->{branchcode} } } ); -my $patron_2 = Koha::Patrons->search->next; +my $patron_2 = $builder->build( { source => 'Borrower' } ); my $nb_of_logaction = get_nb_of_logactions(); my $nb_of_messages = Koha::Patron::Messages->search->count; -- 1.7.10.4