mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
28 lines
554 B
PHP
28 lines
554 B
PHP
<?php
|
|
/**
|
|
* @package cms
|
|
* @subpackage tests
|
|
*/
|
|
class WidgetControllerTestPage extends Page implements TestOnly {
|
|
static $has_one = array(
|
|
'WidgetControllerTestSidebar' => 'WidgetArea'
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @package cms
|
|
* @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);
|
|
}
|
|
}
|