From f1dbbc9e18b0227cb2473bd66ea1106e3861fb76 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sun, 12 Jun 2016 10:15:38 +0100 Subject: [PATCH] Bug 15707: QA follow-up - Drop table if exists 1/ DROP table if exists 2/ FAIL spelling decendents ==> descendants --- installer/data/mysql/kohastructure.sql | 1 + t/db_dependent/LibraryGroups.t | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index 99bb909..cb0c838 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -3958,6 +3958,7 @@ CREATE TABLE deletedbiblio_metadata ( -- Table structure for table 'library_groups' -- +DROP TABLE IF EXISTS `library_groups`; CREATE TABLE library_groups ( id INT(11) NOT NULL auto_increment, -- unique id for each group parent_id INT(11) NULL DEFAULT NULL, -- if this is a child group, the id of the parent group diff --git a/t/db_dependent/LibraryGroups.t b/t/db_dependent/LibraryGroups.t index 5076e11..c3aef9f 100644 --- a/t/db_dependent/LibraryGroups.t +++ b/t/db_dependent/LibraryGroups.t @@ -74,6 +74,6 @@ is( $library->id, $groupA_library1->branchcode, 'Branchcode for fetched library my @libraries_not_direct_children = $groupA->libraries_not_direct_children(); $in_list = any { $_->id eq $groupA_library1->branchcode } @libraries_not_direct_children; -ok( !$in_list, 'Method libraries_not_direct_children returns all libraries not direct decendents of group, library 1 is not in the list'); +ok( !$in_list, 'Method libraries_not_direct_children returns all libraries not direct descendants of group, library 1 is not in the list'); $in_list = any { $_->id eq $groupA1_library2->branchcode } @libraries_not_direct_children; -ok( $in_list, 'Method libraries_not_direct_children returns all libraries not direct decendents of group, library 2 is in the list'); +ok( $in_list, 'Method libraries_not_direct_children returns all libraries not direct descendants of group, library 2 is in the list'); -- 2.1.4