Koha/t/lib/KohaTest/Branch.pm
Andrew Moore 56b9f5b882 bug 1953: fixing potential SQL injection problems in C4::Branch::GetBranches
I moved C4::Branch::GetBranches to use bind parameters and wrote some tests to demonstrate functionality.

No functional or documentation changes here.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-05-12 15:07:17 -05:00

36 lines
855 B
Perl

package KohaTest::Branch;
use base qw( KohaTest );
use strict;
use warnings;
use Test::More;
use C4::Branch;
sub testing_class { 'C4::Branch' };
sub methods : Test( 1 ) {
my $self = shift;
my @methods = qw( GetBranches
GetBranchName
ModBranch
GetBranchCategory
GetBranchCategories
GetCategoryTypes
GetBranch
GetBranchDetail
get_branchinfos_of
GetBranchesInCategory
GetBranchInfo
DelBranch
ModBranchCategoryInfo
DelBranchCategory
CheckBranchCategorycode
);
can_ok( $self->testing_class, @methods );
}
1;