View | Details | Raw Unified | Return to bug 5338
Collapse All | Expand All

(-)a/t/db_dependent/Reports_Guided.t (-2 / +2 lines)
Lines 48-54 my @report_ids; Link Here
48
for my $id ( 1 .. 3 ) {
48
for my $id ( 1 .. 3 ) {
49
    push @report_ids, save_report({
49
    push @report_ids, save_report({
50
        borrowernumber => $id,
50
        borrowernumber => $id,
51
        savedsql       => "SQL$id",
51
        sql            => "SQL$id",
52
        name           => "Name$id",
52
        name           => "Name$id",
53
        area           => "area$id",
53
        area           => "area$id",
54
        group          => "group$id",
54
        group          => "group$id",
Lines 115-121 ok( Link Here
115
    'attempting to run a report with an SQL syntax error returns error message (Bug 12214)'
115
    'attempting to run a report with an SQL syntax error returns error message (Bug 12214)'
116
);
116
);
117
117
118
is_deeply( get_report_areas(), [ 'CIRC', 'CAT', 'PAT', 'ACQ', 'ACC' ],
118
is_deeply( get_report_areas(), [ 'CIRC', 'CAT', 'PAT', 'ACQ', 'ACC', 'SER' ],
119
    "get_report_areas returns the correct array of report areas");
119
    "get_report_areas returns the correct array of report areas");
120
120
121
#End transaction
121
#End transaction
(-)a/t/db_dependent/Templates.t (-3 / +2 lines)
Lines 41-48 my $columns = C4::Templates::GetColumnDefs( $query ); Link Here
41
is( ref( $columns ) eq 'HASH', 1, 'GetColumnDefs returns a hashref' );
41
is( ref( $columns ) eq 'HASH', 1, 'GetColumnDefs returns a hashref' );
42
# get the tables names, sorted
42
# get the tables names, sorted
43
my @keys = sort keys %$columns;
43
my @keys = sort keys %$columns;
44
is( scalar @keys, 5, "GetColumnDefs correctly returns the 5 tables defined in columns.def" );
44
is( scalar @keys, 6, "GetColumnDefs correctly returns the 5 tables defined in columns.def" );
45
my @tables = ( 'biblio', 'biblioitems', 'borrowers', 'items', 'statistics');
45
my @tables = ( 'biblio', 'biblioitems', 'borrowers', 'items', 'statistics', 'subscription');
46
cmp_deeply( \@keys, \@tables, "GetColumnDefs returns the expected tables");
46
cmp_deeply( \@keys, \@tables, "GetColumnDefs returns the expected tables");
47
47
48
48
49
- 

Return to bug 5338