Bugzilla – Attachment 127079 Details for
Bug 29363
TestBuilder.t failing if biblionumber=123 does not exist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29363: Fix TestBuilder.t if bib 123 does not exist
Bug-29363-Fix-TestBuildert-if-bib-123-does-not-exi.patch (text/plain), 1.00 KB, created by
Jonathan Druart
on 2021-10-29 08:00:20 UTC
(
hide
)
Description:
Bug 29363: Fix TestBuilder.t if bib 123 does not exist
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-29 08:00:20 UTC
Size:
1.00 KB
patch
obsolete
>From 80b6bc73c6ee27f4058fe74b8dc2747670847049 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 29 Oct 2021 09:59:29 +0200 >Subject: [PATCH] Bug 29363: Fix TestBuilder.t if bib 123 does not exist > >--- > t/db_dependent/TestBuilder.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t >index f97626c06b6..f4777c8a167 100755 >--- a/t/db_dependent/TestBuilder.t >+++ b/t/db_dependent/TestBuilder.t >@@ -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 }; >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29363
: 127079