silverstripe-widgets/tests/WidgetControllerTestPage.php

28 lines
562 B
PHP
Raw Normal View History

2012-04-18 23:15:45 +02:00
<?php
/**
* @package cms
* @subpackage tests
*/
class WidgetControllerTestPage extends Page implements TestOnly {
2013-04-01 21:37:44 +02:00
private static $has_one = array(
2012-04-18 23:15:45 +02:00
'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);
}
}