2012-04-18 23:15:45 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @package cms
|
|
|
|
* @subpackage tests
|
|
|
|
*/
|
2015-11-18 05:08:21 +01:00
|
|
|
class WidgetControllerTestPage extends Page implements TestOnly
|
|
|
|
{
|
|
|
|
private static $has_one = array(
|
|
|
|
'WidgetControllerTestSidebar' => 'WidgetArea'
|
|
|
|
);
|
2012-04-18 23:15:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @package cms
|
|
|
|
* @subpackage tests
|
|
|
|
*/
|
2015-11-18 05:08:21 +01:00
|
|
|
class WidgetControllerTestPage_Controller extends Page_Controller implements TestOnly
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Template selection doesnt work in test folders,
|
|
|
|
* so we enforce a template name.
|
|
|
|
*/
|
|
|
|
public function getViewer($action)
|
|
|
|
{
|
|
|
|
$templates = array('WidgetControllerTestPage');
|
|
|
|
|
|
|
|
return new SSViewer($templates);
|
|
|
|
}
|
2012-04-18 23:15:45 +02:00
|
|
|
}
|