Bug 9259: Use is instead of is_deeply
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 6 Jul 2016 15:57:05 +0000 (16:57 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 8 Jul 2016 13:43:53 +0000 (13:43 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
t/db_dependent/ImportBatch.t

index e6bf950..e1119d1 100644 (file)
@@ -454,7 +454,8 @@ Page
     <td>[% batch_lis.upload_timestamp %]</td>
     <td>[% batch_lis.num_records %]</td>
     <td>[% batch_lis.num_items %][% IF ( batch_lis.num_items ) %] <a href="[% batch_lis.script_name %]?import_batch_id=[% batch_lis.import_batch_id %]&amp;op=create_labels">(Create label batch)</a>[% END %]</td>
-    <td class="actions">[% IF ( batch_lis.can_clean ) %]
+    <td class="actions">
+        [% IF ( batch_lis.can_clean ) %]
           <form method="post" action="[% batch_lis.script_name %]" name="clean_batch_[% batch_lis.import_batch_id %]" id="clean_batch_[% batch_lis.import_batch_id %]" >
             <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" />
             <input type="hidden" name="op" value="clean-batch" />
index 8cb84ce..156b505 100644 (file)
@@ -138,11 +138,9 @@ my $id_import_batch3 = C4::ImportBatch::AddImportBatch($sample_import_batch3);
 # Test CleanBatch
 C4::ImportBatch::CleanBatch( $id_import_batch3 );
 my $batch3_clean = $dbh->do('SELECT * FROM import_records WHERE import_batch_id = "$id_import_batch3"');
-is_deeply( $batch3_clean, "0E0",
-    "Batch 3 has been cleaned" );
+is( $batch3_clean, "0E0", "Batch 3 has been cleaned" );
 
 # Test DeleteBatch
 C4::ImportBatch::DeleteBatch( $id_import_batch3 );
 my $batch3_results = $dbh->do('SELECT * FROM import_batches WHERE import_batch_id = "$id_import_batch3"');
-is_deeply( $batch3_results, "0E0", # 0E0 == 0
-    "Batch 3 has been deleted");
+is( $batch3_results, "0E0", "Batch 3 has been deleted");