Bug 29363: Fix TestBuilder.t if bib 123 does not exist
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 70acf7157c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
c4654df673
commit
f5d708bf3c
|
|
@ -278,7 +278,7 @@ subtest 'Tests for delete method' => sub {
|
|||
# Test delete in table without primary key (..)
|
||||
is( $schema->source('TmpHoldsqueue')->primary_columns, 0,
|
||||
'Table without primary key detected' );
|
||||
my $bibno = 123; # just a number
|
||||
my $bibno = $builder->build_sample_biblio->biblionumber;
|
||||
my $cnt1 = $schema->resultset('TmpHoldsqueue')->count;
|
||||
# Insert a new record in TmpHoldsqueue with that biblionumber
|
||||
my $val = { biblionumber => $bibno };
|
||||
|
|
|
|||
Loading…
Reference in New Issue