Bug 10332: further improvements to course reserves tests
authorGalen Charlton <gmc@esilibrary.com>
Tue, 18 Jun 2013 15:37:09 +0000 (08:37 -0700)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 18 Jun 2013 23:40:43 +0000 (16:40 -0700)
commit8743f5aab5e1eb49a138bea155e8b82bcaeaa68f
tree744b3823f6f90a2fcc9e830dc1ffba103c107b1a
parentd157179618241f6b3aa5e6cf54ac5cd08cac90f8
Bug 10332: further improvements to course reserves tests

- Wrap tests in a database transaction; that
  way, no special cleanup code is required
- Use AddItem rather than AddItemFromMarc to create
  test items; there's no need to build in a
  dependence on any particular MARC flavor or
  framework in our test cases (except, of course,
  for test cases that are explicitly exercising
  code that involves the frameworks).

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/CourseReserves.t