View | Details | Raw Unified | Return to bug 11897
Collapse All | Expand All

(-)a/t/db_dependent/Items.t (-2 / +7 lines)
Lines 33-39 use Koha::Caches; Link Here
33
use t::lib::Mocks;
33
use t::lib::Mocks;
34
use t::lib::TestBuilder;
34
use t::lib::TestBuilder;
35
35
36
use Test::More tests => 12;
36
use Test::More tests => 14;
37
37
38
use Test::Warn;
38
use Test::Warn;
39
39
Lines 781-786 subtest '_mod_item_dates' => sub { Link Here
781
subtest 'get_hostitemnumbers_of' => sub {
781
subtest 'get_hostitemnumbers_of' => sub {
782
    plan tests => 1;
782
    plan tests => 1;
783
783
784
    $schema->storage->txn_begin;
785
784
    my $bib = MARC::Record->new();
786
    my $bib = MARC::Record->new();
785
    $bib->append_fields(
787
    $bib->append_fields(
786
        MARC::Field->new('100', ' ', ' ', a => 'Moffat, Steven'),
788
        MARC::Field->new('100', ' ', ' ', a => 'Moffat, Steven'),
Lines 791-796 subtest 'get_hostitemnumbers_of' => sub { Link Here
791
793
792
    my @itemnumbers = C4::Items::get_hostitemnumbers_of( $biblionumber );
794
    my @itemnumbers = C4::Items::get_hostitemnumbers_of( $biblionumber );
793
    is( @itemnumbers, 0, );
795
    is( @itemnumbers, 0, );
796
797
    $schema->storage->txn_rollback;
794
};
798
};
795
799
796
subtest 'Test logging for ModItem' => sub {
800
subtest 'Test logging for ModItem' => sub {
Lines 830-835 subtest 'Test logging for ModItem' => sub { Link Here
830
    $schema->resultset('ActionLog')->search()->delete();
834
    $schema->resultset('ActionLog')->search()->delete();
831
    ModItem({ location => $location }, $bibnum, $itemnumber);
835
    ModItem({ location => $location }, $bibnum, $itemnumber);
832
    is( $schema->resultset('ActionLog')->count(), 1, 'Undefined value defaults to true, triggers logging' );
836
    is( $schema->resultset('ActionLog')->count(), 1, 'Undefined value defaults to true, triggers logging' );
837
838
    $schema->storage->txn_rollback;
833
};
839
};
834
840
835
subtest 'Check stockrotationitem relationship' => sub {
841
subtest 'Check stockrotationitem relationship' => sub {
836
- 

Return to bug 11897