assertEqual(libraries_get_path('example'), FALSE, 'libraries_get_path() returns FALSE for a missing library.'); } /** * Tests libraries_prepare_files(). */ function testLibrariesPrepareFiles() { $expected = array( 'files' => array( 'js' => array('example.js' => array()), 'css' => array('example.css' => array()), 'php' => array('example.php' => array()), ), ); $library = array( 'files' => array( 'js' => array('example.js'), 'css' => array('example.css'), 'php' => array('example.php'), ), ); libraries_prepare_files($library, NULL, NULL); $this->assertEqual($expected, $library, 'libraries_prepare_files() works correctly.'); } }