Bug 18766: Remove itemtype-related warnings from ArticleRequests.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 9 Jun 2017 13:46:49 +0000 (10:46 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Jun 2017 13:50:53 +0000 (10:50 -0300)
This patch fixes a small mistake on that test file (itype vs. itemtype
in itemtypes table)

To test:
- Run:
  $ sudo koha-shell kohadev
 k$ cd kohaclone
 k$ prove t/db_dependent/ArticleRequests.t
=> FAIL: itemtype-related warning displayed
- Apply the patch
- Run
 k$ prove t/db_dependent/ArticleRequests.t
=> SUCCESS: No warnings, YAY!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/ArticleRequests.t

index 482cce2..a9466a6 100755 (executable)
@@ -58,7 +58,7 @@ my $item = Koha::Item->new(
     {
         biblionumber     => $biblio->id,
         biblioitemnumber => $biblioitem->id,
-        itype => $itype->{itype},
+        itype => $itype->{itemtype},
     }
 )->store();
 ok( $item->id, 'Koha::Item created' );