function LocaleLibraryInfoAlterTest::testLibraryInfoAlter

Verifies that the datepicker can be localized.

See also

locale_library_info_alter()

File

modules/locale/locale.test, line 205

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.