1 locale.test | public LocaleLibraryInfoAlterTest::testLibraryInfoAlter() |
Verifies that the datepicker can be localized.
See also
File
- core/
modules/ locale/ tests/ locale.test, line 80 - Tests for locale.module.
Class
- LocaleLibraryInfoAlterTest
- Tests localization of the JavaScript libraries.
Code
public function testLibraryInfoAlter() {
backdrop_add_library('system', 'ui.datepicker');
$scripts = backdrop_get_js();
$this->assertTrue(strpos($scripts, 'locale.datepicker.js'), 'locale.datepicker.js added to scripts.');
}