Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$library = libraries_info('example');
$expected = array(
'title' => 'example',
'vendor url' => '',
'download url' => '',
'path' => '',
'version callback' => 'libraries_get_version',
'version arguments' => array(),
'files' => array(),
'variants' => array(),
'versions' => array(),
'integration files' => array(),
);
$this->assertEqual($library, $expected, 'Library specified with an .info file found');
Is failing. I'm not sure what this is supposed to be grabbing from. libraries_info_example.info contains different strings. Is this just an oversight where one was changed but the other was not?
Comment | File | Size | Author |
---|---|---|---|
#1 | library_info_test.patch | 1.1 KB | JacobSingh |
Comments
Comment #1
JacobSingh CreditAttribution: JacobSingh commentedHere is a patch which comments out that test for now.
Comment #2
tstoecklerThanks for that.
The reason that is currently failing is because we had to move our test info file (previously example.info (that's why it's
libraries_load('example')
) because PIFR on drupal.org was (and still is, sadly) failing due to the additional info file.This will be fixed by #919632: Allow library information to be stored in info file soon (I hope to reroll in the next hour or so), so I'm marking this won't fix. It would be absolutely awesome, though, if you would like to help in testing that. :)
See also #944198: Functions that call drupal_system_listing() act on potentially invalid system items for more information on the info file thing.
Comment #3
tstoecklerActually the issue that will fix the broken test is #958162: Allow groups of callbacks to be applied to libraries.