]> git.koha-community.org Git - koha.git/commit
Bug 17932: (followup) Tidy tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 24 Jan 2017 13:48:31 +0000 (10:48 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Feb 2017 15:33:01 +0000 (15:33 +0000)
commitb6de10944c768dcd80f85029c1a068d6b53a12f6
treed747314d91644dfc76f26a7698574874ee44c6a2
parent02f781fee06cb9ce8df8940acc2e8833cb57644b
Bug 17932: (followup) Tidy tests

This patch makes the tests create its own data instead of searching the
DB for a branchcode and a categorycode. It does so on each subtest,
because there shouldn't be side effects between subtests.

I also wrapped each subtest inside a transaction, for the same reason.

To test:
- Apply this patch
- Run:
  $ prove t/db_dependent/Koha/Object.t
=> SUCCESS: Tests return green with this patch
- Sign off :-D

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Koha/Object.t