Bug 16136

Summary: Koha::Patron contains 'return undef' and fails critic tests
Product: Koha Reporter: Tomás Cohen Arazi <tomascohen>
Component: Architecture, internals, and plumbingAssignee: Tomás Cohen Arazi <tomascohen>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: brendan, jonathan.druart, julian.maurice
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 15656    
Bug Blocks:    
Attachments: Bug 16136: Koha::Patron contains 'return undef' and fails critic tests
Bug 16136: Koha::Patron contains 'return undef' and fails critic tests

Description Tomás Cohen Arazi 2016-03-23 17:57:02 UTC
To reproduce:

- Run
  $ TEST_QA=1 prove t/00-testcritic.t
=> FAIL: Koha::Patron makes the tests fail.

While a minor issue, this is really important because the packages build procedure runs the db-independent tests and they need to pass!
Comment 1 Tomás Cohen Arazi 2016-03-23 18:03:14 UTC Comment hidden (obsolete)
Comment 2 Jonathan Druart 2016-03-23 19:45:47 UTC
Created attachment 49458 [details] [review]
Bug 16136: Koha::Patron contains 'return undef' and fails critic tests

This patch fixes this issue.

To test:
- Run
  $ TEST_QA=1 prove t/00-testcritic.t
=> FAIL: Koha::Patron makes the tests fail.
- Apply the patch
- Run
  $ TEST_QA=1 prove t/00-testcritic.t
=> SUCCESS: tests PASS
- Sign off

Regards

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 3 Jonathan Druart 2016-03-23 19:46:07 UTC
Skipping QA.
Comment 4 Brendan Gallagher 2016-03-24 15:36:08 UTC
Pushed to Master - Should be in the May 2016 release.  Thanks!
Comment 5 Julian Maurice 2016-04-07 07:51:12 UTC
Not needed in stable versions, status changed to RESOLVED