function LibrariesUnitTest::testLibrariesGetPath in Libraries API 8.3
Tests libraries_get_path().
File
- src/
Tests/ LibrariesUnitTest.php, line 22
Class
- LibrariesUnitTest
- Tests basic Libraries API functions.
Namespace
Drupal\libraries\TestsCode
function testLibrariesGetPath() {
// Note that, even though libraries_get_path() doesn't find the 'example'
// library, we are able to make it 'installed' by specifying the 'library
// path' up-front. This is only used for testing purposed and is strongly
// discouraged as it defeats the purpose of Libraries API in the first
// place.
$this
->assertEqual(libraries_get_path('example'), FALSE, 'libraries_get_path() returns FALSE for a missing library.');
}