qunit.api.php 347 B

12345678910111213141516
  1. <?php
  2. /**
  3. * @file
  4. * API documentation for QUnit.
  5. */
  6. /**
  7. * Implements hook_library_alter().
  8. */
  9. function mymodule_library_alter(&$libraries, $module) {
  10. // Add available JavaScript tests and dependencies.
  11. if ($module == 'qunit') {
  12. $libraries['qunit']['js'][drupal_get_path('module', 'mymodule') . '/mymodule.test.js'] = array();
  13. }
  14. }