<?php
-require_once 'CiviTest/CiviUnitTestCase.php';
-
/**
* Class CRM_Core_RegionTest
+ * @group headless
*/
class CRM_Core_RegionTest extends CiviUnitTestCase {
public function setUp() {
*/
public function testOverride() {
CRM_Core_Region::instance('testOverride')->update('default', array(
- 'disabled' => TRUE,
+ 'disabled' => TRUE,
));
CRM_Core_Region::instance('testOverride')->add(array(
'markup' => 'override<br/>',
}
/**
- * Test that each of the major content formats are correctly evaluated
+ * Test that each of the major content formats are correctly evaluated.
*/
public function testAllTypes() {
CRM_Core_Region::instance('testAllTypes')->add(array(
));
CRM_Core_Region::instance('testAllTypes')->add(array(
// note: returns a value which gets appended to the region
- 'callback' => create_function('&$spec, &$html', 'return "callback-return<br/>";')
+ 'callback' => create_function('&$spec, &$html', 'return "callback-return<br/>";'),
));
CRM_Core_Region::instance('testAllTypes')->add(array(
// note: returns void; directly modifies region's $html
- 'callback' => create_function('&$spec, &$html', '$html = "callback-ref<br/>" . $html;')
+ 'callback' => create_function('&$spec, &$html', '$html = "callback-ref<br/>" . $html;'),
));
CRM_Core_Region::instance('testAllTypes')->add(array(
'scriptUrl' => '/foo%20bar.js',