}
unless ( $overrides->{any} || $overrides->{duplicate} ) {
my ( $duplicateauthid, $duplicateauthvalue ) = FindDuplicateAuthority( $record, $authtypecode );
my ( $duplicateauthid, $duplicateauthvalue ) = C4::AuthoritiesMarc::FindDuplicateAuthority( $record, $authtypecode );
return $c->render(
status => 409,
$schema->storage->txn_begin;
my $authorities_mock = Test::MockModule->new('C4::AuthoritiesMarc');
$authorities_mock->mock( 'FindDuplicateAuthority', sub { return 1234; } );
my $patron = $builder->build_object(
{
class => 'Koha::Patrons',
-