Bug 13969

Summary: Testing C4::Review
Product: Koha Reporter: Julian FIOL <julian.fiol>
Component: Test SuiteAssignee: Julian FIOL <julian.fiol>
Status: CLOSED FIXED QA Contact: Galen Charlton <gmcharlt>
Severity: trivial    
Priority: P5 - low CC: bgkriegel, jonathan.druart, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 13969 : Testing C4::Review
Bug 13969 : Testing C4::Review
Bug 13969 : Replace calls to $sth->fetchrow* with a call to $dbh->selectrow* and Cleaning files
Bug 13969 : Replace calls to $sth->fetchrow* with a call to $dbh->selectrow* and Cleaning files
[SIGNED-OFF] Bug 13969 : Testing C4::Review
[SIGNED-OFF] Bug 13969 : Replace calls to $sth->fetchrow* with a call to $dbh->selectrow* and Cleaning files
Bug 13969 : Replace calls to $sth->fetchrow* with a call to $dbh->selectrow* and Cleaning files
Bug 13969 : Testing C4::Review
Bug 13969 [QA Followup] - Delete issues before borrowers
Bug 13969 : Testing C4::Review
Bug 13969 : Replace calls to $sth->fetchrow* with a call to $dbh->selectrow* and Cleaning files
Bug 13969 [QA Followup] - Delete issues before borrowers
[PASSED QA] Bug 13969 : Testing C4::Review
[PASSED QA] Bug 13969 : Replace calls to $sth->fetchrow* with a call to $dbh->selectrow* and Cleaning files
[PASSED QA] Bug 13969 [QA Followup] - Delete issues before borrowers

Description Julian FIOL 2015-04-08 13:21:24 UTC
Testing C4::Review in t/db_dependent/Review.t
Adding a pod for every sub
    
    TEST PLAN
    ---------
    1. Apply patch
    2. prove -v t/db_dependent/Review.t
    -- All 117 tests should run successfully without
    any error or warning
    
    TEST PLAN OPTIONAL
    ------------------
    
    Go check bug 13899 and see that coverage is 100% for this module.
    
    Coverage BEFORE this patch :
    Statement  :  21,9%
    Branch     :   0,0%
    Condition  :   0,0%
    Subroutine :  33,3%
    Pod        :  33,3%
    
    Coverage AFTER this patch :
    Statement  : 100,0%
    Branch     : 100,0%
    Condition  :    N/A
    Subroutine : 100,0%
    Pod        : 100,0%
Comment 1 Julian FIOL 2015-04-09 10:34:12 UTC Comment hidden (obsolete)
Comment 2 Julian FIOL 2015-04-09 13:31:22 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2015-04-13 09:57:39 UTC
Julian,
1/ I would suggest you to replace 
  $sth = $dbh->prepare($query);
  $sth->execute($biblionumber1, $status);
  $count = $sth->fetchrow_array;
 with a call to $dbh->selectrow_array

2/ use perltidy on new file.

3/ use the qa script to catch the trailing spaces
Comment 4 Julian FIOL 2015-04-14 12:22:29 UTC Comment hidden (obsolete)
Comment 5 Julian FIOL 2015-04-14 12:28:39 UTC Comment hidden (obsolete)
Comment 6 Bernardo Gonzalez Kriegel 2015-05-06 17:48:57 UTC Comment hidden (obsolete)
Comment 7 Bernardo Gonzalez Kriegel 2015-05-06 17:49:04 UTC Comment hidden (obsolete)
Comment 8 Kyle M Hall (khall) 2015-05-08 14:05:04 UTC Comment hidden (obsolete)
Comment 9 Kyle M Hall (khall) 2015-05-08 14:05:26 UTC Comment hidden (obsolete)
Comment 10 Kyle M Hall (khall) 2015-05-08 14:06:04 UTC Comment hidden (obsolete)
Comment 11 Kyle M Hall (khall) 2015-05-08 14:10:48 UTC Comment hidden (obsolete)
Comment 12 Kyle M Hall (khall) 2015-05-08 14:11:00 UTC Comment hidden (obsolete)
Comment 13 Kyle M Hall (khall) 2015-05-08 14:11:03 UTC Comment hidden (obsolete)
Comment 14 Kyle M Hall (khall) 2015-05-08 14:13:56 UTC
Created attachment 38988 [details] [review]
[PASSED QA] Bug 13969 : Testing C4::Review

Testing C4::Review in t/db_dependent/Review.t
Adding a pod for every sub

    TEST PLAN
    ---------
    1. Apply patch
    2. prove -v t/db_dependent/Review.t
    -- All 117 tests should run successfully without
    any error or warning

    TEST PLAN OPTIONAL
    ------------------

    Go check bug 13899 and see that coverage is 100% for this module.

    Coverage BEFORE this patch :
    Statement  :  21,9%
    Branch     :   0,0%
    Condition  :   0,0%
    Subroutine :  33,3%
    Pod        :  33,3%

    Coverage AFTER this patch :
    Statement  : 100,0%
    Branch     : 100,0%
    Condition  :    N/A
    Subroutine : 100,0%
    Pod        : 100,0%

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
All tests run

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 15 Kyle M Hall (khall) 2015-05-08 14:14:02 UTC
Created attachment 38989 [details] [review]
[PASSED QA] Bug 13969 : Replace calls to $sth->fetchrow* with a call to $dbh->selectrow* and Cleaning files

1. Replace all calls to $sth->fetchrow_array
   with a call to $dbh->selectrow_array

2. Cleaning Review.t file with perltiny

3. Cleaning Review.t && Review.pl files with koha-qa tool

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
No koha-qa errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 16 Kyle M Hall (khall) 2015-05-08 14:14:04 UTC
Created attachment 38990 [details] [review]
[PASSED QA] Bug 13969 [QA Followup] - Delete issues before borrowers

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 17 Tomás Cohen Arazi (tcohen) 2015-05-14 14:20:13 UTC
Patches pushed to master.

Thanks Julian!