Bug 15707: (QA follow-up) Drop table if exists

1/ DROP table if exists
2/ FAIL   spelling
    decendents  ==> descendants

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2016-06-12 10:15:38 +01:00
parent bb52f91d3c
commit bf232417fc
2 changed files with 3 additions and 2 deletions

View File

@ -4166,6 +4166,7 @@ CREATE TABLE illrequestattributes (
-- 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

View File

@ -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');