mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Merge pull request #44 from open-sausages/pulls/4.0/i-name-thou-annoying
BUG Fix table_name config for test pages
This commit is contained in:
commit
bcc123b905
@ -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',
|
||||
|
@ -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",
|
||||
|
@ -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())
|
||||
);
|
||||
|
@ -13,6 +13,7 @@ use SilverStripe\Forms\Form;
|
||||
|
||||
class TestFileUploadPage extends TestPage
|
||||
{
|
||||
private static $table_name = 'TestFileUploadPage';
|
||||
}
|
||||
|
||||
class TestFileUploadPage_Controller extends TestPage_Controller
|
||||
|
@ -19,6 +19,7 @@ use SilverStripe\Security\Security;
|
||||
*/
|
||||
class TestPage extends Page
|
||||
{
|
||||
private static $table_name = 'TestPage';
|
||||
|
||||
/**
|
||||
* We can only create subclasses of TestPage
|
||||
|
Loading…
Reference in New Issue
Block a user