function JavaScriptTestCase::testLibraryNameConflicts
Tests that multiple modules can implement the same library.
See also
File
-
modules/
simpletest/ tests/ common.test, line 1982
Class
- JavaScriptTestCase
- Tests for the JavaScript system.
Code
function testLibraryNameConflicts() {
$farbtastic = drupal_get_library('common_test', 'farbtastic');
$this->assertEqual($farbtastic['title'], 'Custom Farbtastic Library', 'Alternative libraries can be added to the page.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.