1 common.test | CommonJavaScriptTestCase::testLibraryNameConflicts() |
Tests that multiple modules can implement the same library.
See also
File
- core/
modules/ simpletest/ tests/ common.test, line 1890 - Tests for common.inc functionality.
Class
- CommonJavaScriptTestCase
- Tests for the JavaScript system.
Code
function testLibraryNameConflicts() {
$farbtastic = backdrop_get_library('common_test', 'farbtastic');
$this->assertEqual($farbtastic['title'], 'Custom Farbtastic Library', 'Alternative libraries can be added to the page.');
}