function JavaScriptTest::testLibraryNameConflicts

Tests that multiple modules can implement the same library.

See also

common_test_library_info()

File

drupal/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php, line 479
Definition of Drupal\system\Tests\Common\JavaScriptTest.

Class

JavaScriptTest
Tests the JavaScript system.

Namespace

Drupal\system\Tests\Common

Code

function testLibraryNameConflicts() {
  $farbtastic = drupal_get_library('common_test', 'jquery.farbtastic');
  $this
    ->assertEqual($farbtastic['title'], 'Custom Farbtastic Library', 'Alternative libraries can be added to the page.');
}