Bug 19268: Fix TestBuilder parameter in C/Branch.t and K/P/Messaging.t
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 7 Sep 2017 09:48:09 +0000 (11:48 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Sep 2017 16:56:08 +0000 (13:56 -0300)
The values parameter should be called value.
See bug 15339.

Test plan:
Run the adjusted tests.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Circulation/Branch.t
t/db_dependent/Koha/Patron/Messages.t

index 2537723..1be07d9 100644 (file)
@@ -65,21 +65,21 @@ my $samplebranch2 = $builder->build({ source => 'Branch' });
 # Add itemtypes
 my $no_circ_itemtype = $builder->build({
     source => 'Itemtype',
-    values => {
+    value => {
         rentalcharge => '0',
         notforloan   => 0
     }
 });
 my $sampleitemtype1 = $builder->build({
     source => 'Itemtype',
-    values => {
+    value => {
         rentalcharge => '10.0',
         notforloan   => 1
     }
 });
 my $sampleitemtype2 = $builder->build({
     source => 'Itemtype',
-    values => {
+    value => {
         rentalcharge => '5.0',
         notforloan   => 0
     }
@@ -87,7 +87,7 @@ my $sampleitemtype2 = $builder->build({
 # Add Category
 my $samplecat     = $builder->build({
     source => 'Category',
-    values => {
+    value => {
         hidelostitems => 0
     }
 });
index a64327d..3bd9767 100644 (file)
@@ -36,7 +36,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         = $builder->build( { source => 'Borrower', value => { branchcode => $library->{branchcode} } } );
 my $patron_2       = $builder->build( { source => 'Borrower' } );
 my $nb_of_logaction = get_nb_of_logactions();
 my $nb_of_messages = Koha::Patron::Messages->search->count;