The tecnickcom/tc-lib-barcode library, which this module depends on, had an update a few days ago on 22 Nov 2024 which broke one of the tests (BarcodeBlockTest to be exact).

The issue seems to be that when generating barcodes with an SVG format, the library is using a newer version of the SVG schema. It appears that only the attributes on the <svg> opening tag have changed, but this is enough to cause the test to fail.

Version 2.3.2:
<svg width="100.000000" height="100.000000" viewBox="0 0 100.000000 100.000000" version="1.1" xmlns="http://www.w3.org/2000/svg">

Version 2.4.0:

<svg version="1.2" baseProfile="full" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" width="100.000000" height="100.000000" viewBox="0 0 100.000000 100.000000">

To maintain backwards compatibility, I am going to remove the <svg> opening tag from the expected markup. The body of the markup should remain the same, so the test should pass with both the old and new versions of the library if the changed header is not being compared.

This affects only the test cases.

Issue fork barcodes-3489730

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tr created an issue. See original summary.

tr’s picture

Issue summary: View changes

tr’s picture

Issue summary: View changes
tr’s picture

Status: Active » Needs review

  • tr committed b8c326f1 on 2.1.x
    Issue #3489730 by tr: Test failure with tecnickcom/tc-lib-barcode:2.4.0
    
tr’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.