From 9ba7a4b06d562d22d5a1eda37bbac5a892bb9898 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Fri, 11 Nov 2016 11:23:40 +0000 Subject: [PATCH] Bug 17558: QA followup - use TestBuilder for creating patron --- 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; -- 2.1.4