Merge remote-tracking branch 'upstream/4.6' into 4.6-master-2015-11-09-14-08-33
[civicrm-core.git] / CRM / Core / Page / QUnit.php
index b0688609032dc025f7ea3663553745618d07d68a..5920d7779c6173da58180760dd526335b9815f0f 100644 (file)
@@ -9,6 +9,11 @@ require_once 'CRM/Core/Page.php';
 class CRM_Core_Page_QUnit extends CRM_Core_Page {
   protected $tplFile = NULL;
 
+  /**
+   * Run.
+   *
+   * @throws \CRM_Core_Exception
+   */
   public function run() {
     list ($ext, $suite) = $this->getRequestExtAndSuite();
     if (empty($ext) || empty($suite)) {
@@ -40,13 +45,13 @@ class CRM_Core_Page_QUnit extends CRM_Core_Page {
 
     CRM_Utils_System::setTitle(ts('QUnit: %2 (%1)', array(1 => $ext, 2 => $suite)));
     CRM_Core_Resources::singleton()
-      ->addScriptFile('civicrm', 'packages/qunit/qunit.js', 1, 'html-header')
-      ->addStyleFile('civicrm', 'packages/qunit/qunit.css', 1, 'html-header');
+      ->addScriptFile('civicrm', 'bower_components/qunit/qunit/qunit.js', 1, 'html-header')
+      ->addStyleFile('civicrm', 'bower_components/qunit/qunit/qunit.css', 1, 'html-header');
     parent::run();
   }
 
   /**
-   * Extrac the extension and suite from the request path
+   * Extract the extension and suite from the request path.
    *
    * @return array
    */
@@ -68,4 +73,5 @@ class CRM_Core_Page_QUnit extends CRM_Core_Page {
       return array(NULL, NULL);
     }
   }
+
 }