mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@117896 467b73ca-7a2a-4603-9d3b-597d59a354a9
27 lines
563 B
PHP
27 lines
563 B
PHP
<?php
|
|
/**
|
|
* @package sapphire
|
|
* @subpackage tests
|
|
*/
|
|
class WidgetControllerTestPage extends Page implements TestOnly {
|
|
static $has_one = array(
|
|
'WidgetControllerTestSidebar' => 'WidgetArea'
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @package sapphire
|
|
* @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);
|
|
}
|
|
} |