You are here

public function LocaleLibraryInfoAlterTest::testLibraryInfoAlter in Drupal 7

Verifies that the datepicker can be localized.

See also

locale_library_info_alter()

File

modules/locale/locale.test, line 205
Tests for locale.module.

Class

LocaleLibraryInfoAlterTest
Tests localization of the JavaScript libraries.

Code

public function testLibraryInfoAlter() {
  drupal_add_library('system', 'ui.datepicker');
  $scripts = drupal_get_js();
  $this
    ->assertTrue(strpos($scripts, 'locale.datepicker.js'), 'locale.datepicker.js added to scripts.');
}