BUG Fix table_name config for test pages

This commit is contained in:
Christopher Joe 2017-11-27 20:24:08 +13:00
parent 8400ae55e4
commit 4c940e789c
5 changed files with 8 additions and 2 deletions

View File

@ -36,6 +36,8 @@ use SilverStripe\Forms\HTMLReadonlyField;
class BasicFieldsTestPage extends TestPage
{
private static $table_name = 'BasicFieldsTestPage';
private static $db = array(
'CalendarDate' => 'Date',
'Checkbox' => 'Boolean',

View File

@ -11,6 +11,7 @@ use SilverStripe\Forms\Form;
class GridFieldTestPage extends TestPage
{
private static $table_name = 'GridFieldTestPage';
private static $has_one = array(
"HasOneCompany" => "SilverStripe\\FrameworkTest\\Model\\Company",

View File

@ -10,6 +10,7 @@ use SilverStripe\Forms\TreeMultiselectField;
class RelationFieldsTestPage extends TestPage
{
private static $table_name = 'RelationFieldsTestPage';
private static $has_one = array(
"HasOneCompany" => "SilverStripe\\FrameworkTest\\Model\\Company",
@ -28,13 +29,13 @@ class RelationFieldsTestPage extends TestPage
private static $defaults = array(
'Title' => 'Relational Fields'
);
public function getCMSFields()
{
$fields = parent::getCMSFields();
$allFields = array();
$checkboxFields = array(
new CheckboxSetField("CheckboxSet", "CheckboxSetField", TestCategory::map())
);

View File

@ -13,6 +13,7 @@ use SilverStripe\Forms\Form;
class TestFileUploadPage extends TestPage
{
private static $table_name = 'TestFileUploadPage';
}
class TestFileUploadPage_Controller extends TestPage_Controller

View File

@ -19,6 +19,7 @@ use SilverStripe\Security\Security;
*/
class TestPage extends Page
{
private static $table_name = 'TestPage';
/**
* We can only create subclasses of TestPage