56b9f5b882
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>
36 lines
855 B
Perl
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;
|
|
|