You are here

function LibrariesUnitTestCase::testLibrariesGetPath in Libraries API 7.3

Tests libraries_get_path().

File

tests/libraries.test, line 28
Tests for Libraries API.

Class

LibrariesUnitTestCase
Tests basic Libraries API functions.

Code

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.');
}