|
Lines 184-189
is( $letters->[0]->{name}, 'my name', 'GetLetters gets the name correctly' );
Link Here
|
| 184 |
# getletter |
184 |
# getletter |
| 185 |
subtest 'getletter' => sub { |
185 |
subtest 'getletter' => sub { |
| 186 |
plan tests => 16; |
186 |
plan tests => 16; |
|
|
187 |
t::lib::Mocks::mock_preference('IndependentBranches', 0); |
| 187 |
my $letter = C4::Letters::getletter('my module', 'my code', $library->{branchcode}, 'email'); |
188 |
my $letter = C4::Letters::getletter('my module', 'my code', $library->{branchcode}, 'email'); |
| 188 |
is( $letter->{branchcode}, $library->{branchcode}, 'GetLetters gets the branch code correctly' ); |
189 |
is( $letter->{branchcode}, $library->{branchcode}, 'GetLetters gets the branch code correctly' ); |
| 189 |
is( $letter->{module}, 'my module', 'GetLetters gets the module correctly' ); |
190 |
is( $letter->{module}, 'my module', 'GetLetters gets the module correctly' ); |
| 190 |
- |
|
|