From 23b8bdb1908c52b9db93e88cc57fb63cd3df2ec7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 17 Oct 2018 19:18:58 -0300 Subject: [PATCH] Bug 21597: Data too long for column 'invitekey' Fix t/db_dependent/Virtualshelves.t virtualshelfshares.invitekey `invitekey` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, We should not insert a longer string! DBIx::Class::Storage::DBI::_dbh_execute(): Data too long for column 'invitekey' at row 1 at /home/vagrant/kohaclone/Koha/Object.pm line 125 Signed-off-by: Nick Clemens --- t/db_dependent/Virtualshelves.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Virtualshelves.t b/t/db_dependent/Virtualshelves.t index 8b751fe..ce521ad 100644 --- a/t/db_dependent/Virtualshelves.t +++ b/t/db_dependent/Virtualshelves.t @@ -153,9 +153,9 @@ subtest 'Sharing' => sub { is( $number_of_shelves_shared, 2, 'To be sure no shares have been removed' ); # Test double accept (BZ 11943) before removing the accepted share - my $third_share = $shelf_to_share->share('valid key number 2'); + my $third_share = $shelf_to_share->share('valid key3'); is( Koha::Virtualshelfshares->search->count, 3, 'Three shares' ); - $is_accepted = $third_share->accept( 'valid key number 2', $share_with_me->{borrowernumber} ); + $is_accepted = $third_share->accept( 'valid key3', $share_with_me->{borrowernumber} ); is( $is_accepted->shelfnumber, $shelf_to_share->shelfnumber, 'Accept returned the existing share' ); is( Koha::Virtualshelfshares->search->count, 2, 'Check that number of shares went down again' ); -- 2.1.4