Bug 7919: Fix unit test (Members_AttributeTypes.t)
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 6 Dec 2012 09:08:23 +0000 (10:08 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 7 Dec 2012 23:26:37 +0000 (18:26 -0500)
commit3eec0e96ecac50c560640b4525f12adaf36b7122
treecb611cd6f9edf3e8049e3d82ded476f295c1f967
parent90378453d36291968914107c8b49458a9e6be2c8
Bug 7919: Fix unit test (Members_AttributeTypes.t)

- Reintroduce the class column in a select statement (was present before
  this development)
- FIX UT: If there are no arg passed in parameter, the routine calls
  C4::Context->userenv which call an execute statement. It consumes the
  mocked resultset

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Elliott Davis <elliott@test.bywatersolutions.com>
All tests successful.
Files=1, Tests=9,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.16 cusr  0.06 csys =  0.25 CPU)
Result: PASS
C4/Members/AttributeTypes.pm
t/Members_AttributeTypes.t