Bugzilla – Attachment 58878 Details for
Bug 17273
Batch MARC Modification - improve options to define which records to modify
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17273: Add tests for Virtualshelf->list_biblionumbers
Bug-17273-Add-tests-for-Virtualshelf-listbiblionum.patch (text/plain), 1.58 KB, created by
Marcel de Rooy
on 2017-01-12 14:31:05 UTC
(
hide
)
Description:
Bug 17273: Add tests for Virtualshelf->list_biblionumbers
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-01-12 14:31:05 UTC
Size:
1.58 KB
patch
obsolete
>From 7144cd8df68a88a1fe468084b56d2c191415582b Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 12 Jan 2017 15:05:15 +0100 >Subject: [PATCH] Bug 17273: Add tests for Virtualshelf->list_biblionumbers >Content-Type: text/plain; charset=utf-8 > >Test plan: >Run t/db_dependent/Virtualshelves.t > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Virtualshelves.t | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Virtualshelves.t b/t/db_dependent/Virtualshelves.t >index c867056..80e9fdd 100644 >--- a/t/db_dependent/Virtualshelves.t >+++ b/t/db_dependent/Virtualshelves.t >@@ -406,7 +406,7 @@ subtest 'Get shelves' => sub { > > subtest 'Get shelves containing biblios' => sub { > >- plan tests => 9; >+ plan tests => 11; > my $patron1 = $builder->build( { source => 'Borrower', } ); > my $patron2 = $builder->build( { source => 'Borrower', } ); > my $biblio1 = $builder->build( { source => 'Biblio', } ); >@@ -489,6 +489,12 @@ subtest 'Get shelves containing biblios' => sub { > is ( $shelves_with_biblio4_for_patron2->count, 2, 'Patron should shown private and public lists for a given biblio' ); > is ( $shelves_with_biblio4_for_patron2->next->shelfname, $shelf3->shelfname, 'The shelves should be sorted by shelfname' ); > >+ # Test list_biblionumbers >+ my $biblios = $shelf2->list_biblionumbers; >+ is( @$biblios, 3, 'Three biblionumbers expected' ); >+ my @filtered = grep { $_ eq $biblio2->{biblionumber}; } @$biblios; >+ is( @filtered, 1, 'Biblio2 included' ); >+ > teardown(); > }; > >-- >2.1.4
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 17273
:
58875
|
58876
|
58877
|
58878
|
58911
|
58912