Bug 21910: Remove duplicated lines in tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 6 Dec 2018 15:52:54 +0000 (12:52 -0300)
committerJesse Maseto <jesse@bywatersolution.com>
Tue, 18 Dec 2018 19:02:42 +0000 (19:02 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit ee96d18b2cee07aa64d5e68078bc898d36e22146)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 5ab531818003874635d842a59ec3234370b200c3)

t/db_dependent/LibraryGroups.t

index 02d2065..eb800dd 100644 (file)
@@ -122,14 +122,6 @@ subtest 'Koha::Library::Group->get_search_groups' => sub {
     is_deeply( $groups[0]->unblessed, $groupA->unblessed, 'Get search groups opac should return enabled group' );
     @groups = Koha::Library::Groups->get_search_groups({ interface => 'staff' });
     is_deeply( $groups[0]->unblessed, $groupB->unblessed, 'Get search groups staff should return enabled group' );
-
-    # TODO This is not implemented because not used yet
-    # ->has_child only works with libraries
-    #is( $groupA->has_child( $groupA1 ), 1, 'groupA1 should be condidered as a child of groupA' );
-
-    # FIXME At the time of writing this test fails because the ->children methods does not return more than 1 level of depth
-    # See Bug 15707 comments 166-170+
-    #is( $groupA->has_child( $groupA1_library2->branchcode ), 1, 'groupA1_library2 should be considered as a child of groupA (it is a grandchild)' );
 };
 
 my $groupX = Koha::Library::Group->new( { title => "Group X" } )->store();