| 7 common.test | JavaScriptTestCase::testLibraryNameConflicts() |
Tests that multiple modules can implement the same library.
See also
File
- modules/
simpletest/ tests/ common.test, line 1491 - Tests for common.inc functionality.
Code
function testLibraryNameConflicts() {
$farbtastic = drupal_get_library('common_test', 'farbtastic');
$this->assertEqual($farbtastic['title'], 'Custom Farbtastic Library', t('Alternative libraries can be added to the page.'));
}
Login or register to post comments