From: Chris Cormack Date: Mon, 30 Sep 2013 00:48:56 +0000 (+1300) Subject: Adding tests for NCIP::Item X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=abcafe255787e18cc231e042172c0faec5a0b764;p=working%2FNCIPServer.git Adding tests for NCIP::Item Signed-off-by: Chris Cormack --- diff --git a/t/NCIP_Item.t b/t/NCIP_Item.t new file mode 100644 index 0000000..119ce64 --- /dev/null +++ b/t/NCIP_Item.t @@ -0,0 +1,13 @@ +#/usr/bin/perl + +use strict; +use warnings; +use lib 'lib'; + +use Test::More tests => 3; # last test to print + +use_ok('NCIP::Item'); + +ok(my $user = NCIP::Item->new({itemid => 1}),'Create a new item object'); +is($user->itemid(), '1', "Test getting itemid"); +