[Koha-bugs] [Bug 33584] New: Fix failures for Database/Commenter.t

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 21 17:28:37 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33584

            Bug ID: 33584
           Summary: Fix failures for Database/Commenter.t
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Test Suite
          Assignee: chris at bigballofwax.co.nz
          Reporter: m.de.rooy at rijksmuseum.nl
        QA Contact: testopia at bugs.koha-community.org

# Subtest: ->new, dry_run
    1..6
    ok 1 - No dbh
    ok 2 - dbh no string
    ok 3 - Schema deleted
    not ok 4 - No comment for toc_request
    not ok 5 - Numbered comment for toc_request
    not ok 6 - Reset for one-columned article_requests
not ok 1 - ->new, dry_run

22:24:01 koha_1       |     #   Failed test 'No comment for toc_request'
22:24:01 koha_1       |     #   at t/db_dependent/Koha/Database/Commenter.t
line 34.
22:24:01 koha_1       |     #          got: '0'
22:24:01 koha_1       |     #     expected: '1'
22:24:01 koha_1       | Use of uninitialized value in string ne at
/kohadevbox/koha/Koha/Database/Commenter.pm line 147.
=>         [sub renumber] next if $params->{table} && $col->{table_name} ne
$params->{table};

Looks like we are reading info from another database or so, here:

SELECT table_name, column_name, column_comment FROM information_schema.columns
WHERE table_schema=? AND table_name=?
ORDER BY table_name, column_name|;

Or perhaps no permissions ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list