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

(-)a/t/db_dependent/Reports/Guided.t (-5 / +4 lines)
Lines 186-204 subtest 'get_saved_reports' => sub { Link Here
186
    is( $count, 0, "There is no report" );
186
    is( $count, 0, "There is no report" );
187
187
188
    my @report_ids;
188
    my @report_ids;
189
    foreach ( 1..3 ) {
189
    foreach my $ii ( 1..3 ) {
190
        my $id = $builder->build({ source => 'Borrower' })->{ borrowernumber };
190
        my $id = $builder->build({ source => 'Borrower' })->{ borrowernumber };
191
        push @report_ids, save_report({
191
        push @report_ids, save_report({
192
            borrowernumber => $id,
192
            borrowernumber => $id,
193
            sql            => "SQL$id",
193
            sql            => "SQL$id",
194
            name           => "Name$id",
194
            name           => "Name$id",
195
            area           => "area$id",
195
            area           => "area$ii", # ii vs id area is varchar(6)
196
            group          => "group$id",
196
            group          => "group$id",
197
            subgroup       => "subgroup$id",
197
            subgroup       => "subgroup$id",
198
            type           => "type$id",
198
            type           => "type$id",
199
            notes          => "note$id",
199
            notes          => "note$id",
200
            cache_expiry   => "null",
200
            cache_expiry   => undef,
201
            public         => "null"
201
            public         => 0,
202
        });
202
        });
203
        $count++;
203
        $count++;
204
    }
204
    }
205
- 

Return to bug 20144