Bug 9259: Use is instead of is_deeply
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit df57c8e864)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
3e6e92ad66
commit
363d8bcbb8
|
|
@ -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 %]&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" />
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue