Bugzilla – Attachment 102082 Details for
Bug 25008
Koha::RecordProcessor->options doesn't refresh the filters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25008: Tests for ->options
Bug-25008-Tests-for--options.patch (text/plain), 1.19 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-03-30 13:31:06 UTC
(
hide
)
Description:
Bug 25008: Tests for ->options
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-03-30 13:31:06 UTC
Size:
1.19 KB
patch
obsolete
>From f5f01d8447f8bbc1f3d091ae2508367c63e51902 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 30 Mar 2020 10:20:11 -0300 >Subject: [PATCH] Bug 25008: Tests for ->options > >--- > t/RecordProcessor.t | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/t/RecordProcessor.t b/t/RecordProcessor.t >index aab2b3c0f5..9a0db02797 100755 >--- a/t/RecordProcessor.t >+++ b/t/RecordProcessor.t >@@ -151,7 +151,7 @@ subtest 'new() tests' => sub { > > subtest 'options() tests' => sub { > >- plan tests => 4; >+ plan tests => 6; > > # Create a processor with some options > my $record_processor = Koha::RecordProcessor->new( >@@ -178,12 +178,15 @@ subtest 'options() tests' => sub { > ); > > # Update the chosen options >- $record_processor->options( >+ my $ret = $record_processor->options( > { > dummy => 'something else' > } > ); > >+ is( ref($ret), 'Koha::RecordProcessor', 'The setter return the object for chaining calls' ); >+ is_deeply( $record_processor->options, { dummy => 'something else' }, 'The getter works as expected' ); >+ > # Re-fetch the filter > $filter = $record_processor->filters->[0]; > >-- >2.26.0
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 25008
:
102019
|
102082
|
102083
|
102086
|
102087
|
102088
|
102806
|
102807
|
102808