Bug 22107: patrons.t doesn't need to delete existing data
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 11 Jan 2019 18:14:04 +0000 (15:14 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 14 Jan 2019 14:29:55 +0000 (14:29 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

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

t/db_dependent/api/v1/patrons.t

index 7c14801..8b28d77 100644 (file)
@@ -50,8 +50,6 @@ subtest 'list() tests' => sub {
 
         $schema->storage->txn_begin;
 
-        Koha::Patrons->search->delete;
-
         my ( $patron_id, $session_id ) = create_user_and_session({ authorized => 1 });
         my $patron = Koha::Patrons->find($patron_id);