]> git.koha-community.org Git - koha.git/commit
Bug 17640: Fix t/db_dependent/Template/Plugin/Categories.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 16 Nov 2016 09:41:26 +0000 (09:41 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 16 Nov 2016 15:50:44 +0000 (15:50 +0000)
commite7833cf331102d4a6e30fee9f34e3541cb436976
tree5f9ca1a3a647df65aba919e6a5b6c8502c3fe841
parent81cd8b93bbdc8691cd7d86070d86634d6957c86d
Bug 17640: Fix t/db_dependent/Template/Plugin/Categories.t

These tests fail since commit 6ee8dd3a597d08ccc5122473e55790d3f21d5163
    Bug 15407: Koha::Patron::Categories - replace C4::Category->all

Indeed the patron categories plugin now returns a
Koha::Patron::Categories object and does not set a 'selected' flag.
We do not need this flag (`git grep Categories.all **/*.tt` to trust me)

Note that this patch also add a patron category to make the test passes
even if no category exist.

Test plan:
  prove t/db_dependent/Template/Plugin/Categories.t
should return green

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Template/Plugin/Categories.t