[Koha-bugs] [Bug 23770] Add Koha::Object(s)->to_api method

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 15 22:01:26 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23770

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Failed QA                   |Signed Off

--- Comment #21 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Marcel de Rooy from comment #15)
> Depending on strict mode I have two results of the Object.t test:
> 
>         not ok 1 - Exception thrown correctly
>         #   Failed test 'Exception thrown correctly'
>         #   at t/db_dependent/Koha/Object.t line 411.
>         # expecting: Koha::Exceptions::Object::BadValue
>         # found: normal exit
>         # Looks like you failed 1 test of 1.
>     not ok 16 - Bad value tests
> 
>         #   Failed test 'Exception thrown correctly'
>         #   at t/db_dependent/Koha/Object.t line 411.
>         # expecting: Koha::Exceptions::Object::BadValue
>         # found: DBIx::Class::Exception
> (DBIx::Class::Storage::DBI::_dbh_execute(): Incorrect datetime value:
> 'wrong_value' for column `koha_master`.`borrowers`.`lastseen` at row 1 at
> /usr/share/koha/Koha/Object.pm line 156
>         # )
>         # Looks like you failed 1 test of 1.

Ok, but that's not something related to this bug, you just found that if we
manage not to run the tests in strict mode on a dev env (i.e. using perl
instead of prove) the exception is not thrown, fair enough.

I'm setting this one back to Signed-off.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list