Bug 30920: (follow-up) Manually flush caches in tests
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 10 Mar 2023 16:34:26 +0000 (16:34 +0000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 14 Mar 2023 10:12:33 +0000 (10:12 +0000)
commite4ad8c721be379faa640205c77a577054f2d6e0d
treecc5ae90c71041453323ef7d0a7dc13587cda45c9
parent83aa56e89c2af67a8df9c3e4339fe535a80ee0d7
Bug 30920: (follow-up) Manually flush caches in tests

We can't rely on our cache flushing in either 'store' or 'delete'
triggers as t/lib/TestBuilder::build_object skips the Koha::Object store
and uses direct DB inserts in preference.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b4c9a6cfe23a47cd9a3cb5c6a74c51b36dc15855)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
t/db_dependent/Koha/Item.t