Bugzilla – Attachment 30600 Details for
Bug 12167
datetime type casting issue regarding bug 7567
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 12167: Bad expected results and condition check for GetNewsToDisplay
SIGNED-OFF-Bug-12167-Bad-expected-results-and-cond.patch (text/plain), 2.00 KB, created by
Bernardo Gonzalez Kriegel
on 2014-08-07 21:15:45 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 12167: Bad expected results and condition check for GetNewsToDisplay
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2014-08-07 21:15:45 UTC
Size:
2.00 KB
patch
obsolete
>From e1740626fd531c4694baedde02d3a47390c342f9 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Sun, 27 Jul 2014 21:16:38 -0400 >Subject: [PATCH] [SIGNED-OFF] Bug 12167: Bad expected results and condition > check for GetNewsToDisplay > >This corrected the results expected to a single array reference. >It then determines that it is defined and an array reference. >And lastly, correct the logic that was supposed to check for >valid results. > >TEST PLAN >--------- >1) Apply patch 1 and 2. >2) prove -v t/db_dependent/NewsChannels.t > -- all tests should pass > -- note the test changes to verify correctly what should > be tested for. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >--- > t/db_dependent/NewsChannels.t | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/t/db_dependent/NewsChannels.t b/t/db_dependent/NewsChannels.t >index a70bc3f..332b396 100644 >--- a/t/db_dependent/NewsChannels.t >+++ b/t/db_dependent/NewsChannels.t >@@ -132,13 +132,13 @@ my ( $opac_news_count, $arrayref_opac_news ) = get_opac_news( 0, q{}, 'LIB1' ); > ok( $opac_news_count >= 2, 'Successfully tested get_opac_news for LIB1!' ); > > # Test GetNewsToDisplay >-( $opac_news_count, $arrayref_opac_news ) = GetNewsToDisplay( q{}, 'LIB1' ); >-ok( !$arrayref_opac_news, 'Second parameter is ' . >+( $arrayref_opac_news ) = GetNewsToDisplay( q{}, 'LIB1' ); >+ok( $arrayref_opac_news, '$arrayref_opac_news is ' . > ( defined($arrayref_opac_news) ? >- ("Defined as '$arrayref_opac_news'") : "UNDEFINED") >+ ('Defined') : 'UNDEFINED') > ); >-ok ( ref $opac_news_count eq 'ARRAY', >- '$opac_news_count is an array reference'); >-ok( $opac_news_count >= 2, 'Successfully tested GetNewsToDisplay for LIB1!' ); >+ok( ref $arrayref_opac_news eq 'ARRAY', >+ '$arrayref_opac_news is an array reference.' ); >+ok( (scalar @$arrayref_opac_news) >= 2, 'Successfully tested GetNewsToDisplay for LIB1!' ); > > $dbh->rollback; >-- >1.7.9.5
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 12167
:
27825
|
27826
|
30171
|
30172
|
30173
|
30174
|
30175
|
30176
|
30599
|
30600
|
30601
|
30642
|
30663
|
30882
|
30883
|
30884
|
30885
|
31139
|
38721
|
38722
|
38723
|
38724