Newer
Older
<?php
/**
* @file
* Definition of Drupal\locale\Tests\LocaleLibraryInfoAlterTest.
*/
namespace Drupal\locale\Tests;
use Drupal\simpletest\WebTestBase;
/**
* Tests localization of the JavaScript libraries.
*
* Currently, only the jQuery datepicker is localized using Drupal translations.
*/
class LocaleLibraryInfoAlterTest extends WebTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = array('locale');
public static function getInfo() {
return array(
Angie Byron
committed
'name' => 'Javascript library localization',
'description' => 'Tests localization of the JavaScript libraries.',
'group' => 'Locale',
);
}
/**
* Verifies that the datepicker can be localized.
*
* @see locale_library_info_alter()
*/
public function testLibraryInfoAlter() {
Angie Byron
committed
drupal_add_library('system', 'jquery.ui.datepicker');