| 
      
            Lines 253-259
          subtest 'store() tests' => sub {
      
      
        Link Here
      
     | 
  
        
          | 253 | 
              my $patron_id = $patron->id;  | 
          253 | 
              my $patron_id = $patron->id;  | 
        
        
          | 254 | 
              $patron->delete;  | 
          254 | 
              $patron->delete;  | 
        
        
          | 255 | 
           | 
          255 | 
           | 
        
          
            
              | 256 | 
                  my $api_key = Koha::ApiKey->new({ patron_id => $patron_id }); | 
              256 | 
                  my $api_key = Koha::ApiKey->new({ patron_id => $patron_id, secret => 'a secret', description => 'a description' }); | 
            
        
          | 257 | 
           | 
          257 | 
           | 
        
        
          | 258 | 
              my $print_error = $schema->storage->dbh->{PrintError}; | 
          258 | 
              my $print_error = $schema->storage->dbh->{PrintError}; | 
        
        
          | 259 | 
              $schema->storage->dbh->{PrintError} = 0; | 
          259 | 
              $schema->storage->dbh->{PrintError} = 0; | 
        
  
    | 
      
            Lines 278-283
          subtest 'store() tests' => sub {
      
      
        Link Here
      
     | 
  
        
          | 278 | 
              my $new_api_key = Koha::ApiKey->new({ | 
          278 | 
              my $new_api_key = Koha::ApiKey->new({ | 
        
        
          | 279 | 
                  patron_id => $patron_id,  | 
          279 | 
                  patron_id => $patron_id,  | 
        
        
          | 280 | 
                  secret => $api_key->secret,  | 
          280 | 
                  secret => $api_key->secret,  | 
        
            
               | 
               | 
              281 | 
                      description => 'a description',  | 
            
        
          | 281 | 
              });  | 
          282 | 
              });  | 
        
        
          | 282 | 
           | 
          283 | 
           | 
        
        
          | 283 | 
              throws_ok  | 
          284 | 
              throws_ok  | 
        
            
              | 284 | 
              -   | 
               | 
               |