]> git.koha-community.org Git - koha.git/commit
Bug 29857: (QA follow-up) Fix unit test Object.t
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 2 Mar 2022 07:04:13 +0000 (21:04 -1000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 2 Mar 2022 08:47:47 +0000 (22:47 -1000)
commitc2871214716cf35f430b6b6c6af138385f6a17d1
tree6db08d2679c93840dde43ad8952579f37ddce42b
parent6ece7185b03b5323c79dfcd841673d6a42750e30
Bug 29857: (QA follow-up) Fix unit test Object.t

Unit test failling with :
    #   Failed test 'Exception message correct'
    #   at /kohadevbox/koha/t/db_dependent/Koha/Object.t line 335.
     #          got: 'Exception 'Koha::Exception' thrown 'Asked to embed items but its return value doesn't implement to_api'
    # '
    #     expected: 'Asked to embed items but its return value doesn't implement to_api'
     # Looks like you failed 1 test of 29.

Fixed by using $@->message like in other places.

prove t/db_dependent/Koha/Object.t

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/Object.t