public function LocaleLibraryInfoAlterTest::testLibraryInfoAlter

Verifies that the datepicker can be localized.

See also

locale_library_info_alter()

File

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