$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?

CommentFileSizeAuthor
#1 library_info_test.patch1.1 KBJacobSingh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JacobSingh’s picture

Status: Active » Needs review
FileSize
1.1 KB

Here is a patch which comments out that test for now.

tstoeckler’s picture

Status: Needs review » Closed (won't fix)

Thanks 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.

tstoeckler’s picture

Actually the issue that will fix the broken test is #958162: Allow groups of callbacks to be applied to libraries.