public function LocaleLibraryInfoAlterTest::testLibraryInfoAlter
7.x locale.test | public LocaleLibraryInfoAlterTest::testLibraryInfoAlter() |
Verifies that the datepicker can be localized.
See also
locale_library_info_alter()
File
- drupal-7.x/
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.');
}