2011-03-23 00:00:35 +01:00
|
|
|
<?php
|
|
|
|
/**
|
2011-03-22 10:47:26 +01:00
|
|
|
* @package cms
|
2011-03-23 00:00:35 +01:00
|
|
|
* @subpackage tests
|
|
|
|
*/
|
|
|
|
class WidgetControllerTestPage extends Page implements TestOnly {
|
|
|
|
static $has_one = array(
|
|
|
|
'WidgetControllerTestSidebar' => 'WidgetArea'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2011-03-22 10:47:26 +01:00
|
|
|
* @package cms
|
2011-03-23 00:00:35 +01:00
|
|
|
* @subpackage tests
|
|
|
|
*/
|
|
|
|
class WidgetControllerTestPage_Controller extends Page_Controller implements TestOnly {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Template selection doesnt work in test folders,
|
|
|
|
* so we enforce a template name.
|
|
|
|
*/
|
|
|
|
function getViewer($action) {
|
|
|
|
$templates = array('WidgetControllerTestPage');
|
|
|
|
|
|
|
|
return new SSViewer($templates);
|
|
|
|
}
|
2012-04-12 09:23:20 +02:00
|
|
|
}
|