Lines 4-10
Link Here
|
4 |
use Modern::Perl; |
4 |
use Modern::Perl; |
5 |
use utf8; |
5 |
use utf8; |
6 |
|
6 |
|
7 |
use Test::More tests => 10; |
7 |
use Test::More tests => 11; |
8 |
|
8 |
|
9 |
BEGIN { |
9 |
BEGIN { |
10 |
use_ok('Koha::Database'); |
10 |
use_ok('Koha::Database'); |
Lines 35-40
$schema->resultset('Category')->create({
Link Here
|
35 |
categorycode => 'GIFT-RUS', |
35 |
categorycode => 'GIFT-RUS', |
36 |
description => $gift, |
36 |
description => $gift, |
37 |
}); |
37 |
}); |
|
|
38 |
my $cat = $schema->resultset('Category')->find('GIFT-RUS'); |
39 |
ok( $cat, 'Found category with find' ); |
38 |
my $desc = $schema->resultset('Category')->search({ |
40 |
my $desc = $schema->resultset('Category')->search({ |
39 |
categorycode => 'GIFT-RUS', |
41 |
categorycode => 'GIFT-RUS', |
40 |
})->single->get_column('description'); |
42 |
})->single->get_column('description'); |
41 |
- |
|
|