]> git.koha-community.org Git - koha.git/commit
Bug 37898: Wrap Relationships.t inside a transaction
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 11 Sep 2024 15:55:40 +0000 (12:55 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 19 Sep 2024 11:50:20 +0000 (12:50 +0100)
commitbe0931fdf77db3545eef6315cef4512014e2263d
treef69b792c9f450d940bfd16ee16cdd15950d16dfc
parente052614d7fc25bcba3550d5930406040e4264c67
Bug 37898: Wrap Relationships.t inside a transaction

This tests leave data on the DB and need to be fixed. This patch does
that.

To test:
1. Run:
   $ ktd --shell
  k$ echo "SELECT COUNT(*) FROM borrowers \G" | koha-mysql kohadev
  k$ echo "SELECT COUNT(*) FROM borrower_relationships \G" | koha-mysql kohadev
2. Run:
  k$ prove t/db_dependent/Patron/Relationships.t
=> SUCCESS: Tests pass
3. Repeat 1
=> FAIL: Numbers don't match the original ones!
4. Apply this patch
5. Repeat 2 and 3
=> SUCCESS: Tests still pass!
=> SUCCESS: Numbers match!
6. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Patron/Relationships.t