]> git.koha-community.org Git - koha.git/commit
Bug 22690: (QA follow-up) Silence manually generated warnings
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Tue, 25 May 2021 15:09:30 +0000 (18:09 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 27 Aug 2021 09:02:40 +0000 (11:02 +0200)
commite0664c8d00fabc4e12d9e910eb2dd314f6d8a379
treecf8b502101eb4d6df3a388c50f16cb7be94fdd35
parent4da161d05ae088cb0852c02a95dc52ab89dd4da4
Bug 22690: (QA follow-up) Silence manually generated warnings

In our test setup we mock the index_records() to produce warnings like
this:

Koha::Item at t/db_dependent/Koha/SearchEngine/Indexer.t line
93.

By wrapping all our item creations to warnings_are{} we can silence them.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/SearchEngine/Indexer.t