class CRM_Core_Page_QUnit extends CRM_Core_Page {
protected $tplFile = NULL;
- function run() {
+ /**
+ * Run.
+ *
+ * @throws \CRM_Core_Exception
+ */
+ public function run() {
list ($ext, $suite) = $this->getRequestExtAndSuite();
if (empty($ext) || empty($suite)) {
throw new CRM_Core_Exception("FIXME: Not implemented: QUnit browser");
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
*/
- function getRequestExtAndSuite() {
+ public function getRequestExtAndSuite() {
$config = CRM_Core_Config::singleton();
$arg = explode('/', $_GET[$config->userFrameworkURLVar]);
return array(NULL, NULL);
}
}
+
}