mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Fixed test failures related to legacy code in the test objects
This commit is contained in:
parent
20da27f7dd
commit
6cfc1b7338
@ -15,6 +15,8 @@ use SilverStripe\Forms\GridField\GridFieldConfig;
|
|||||||
use SilverStripe\ORM\DataList;
|
use SilverStripe\ORM\DataList;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\DB;
|
use SilverStripe\ORM\DB;
|
||||||
|
use SilverStripe\ORM\FieldType\DBInt;
|
||||||
|
use SilverStripe\ORM\FieldType\DBVarchar;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
use SilverStripe\Versioned\Versioned;
|
use SilverStripe\Versioned\Versioned;
|
||||||
use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows;
|
use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows;
|
||||||
@ -280,8 +282,8 @@ class GridFieldAction_SortOrder_Player extends DataObject implements TestOnly
|
|||||||
private static $table_name = 'GridFieldAction_SortOrder_Player';
|
private static $table_name = 'GridFieldAction_SortOrder_Player';
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Name' => 'Varchar',
|
'Name' => DBVarchar::class,
|
||||||
'SortOrder' => 'Int'
|
'SortOrder' => DBInt::class
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $default_sort = 'SortOrder';
|
private static $default_sort = 'SortOrder';
|
||||||
@ -299,8 +301,8 @@ class GridFieldAction_SortOrder_VPlayer extends DataObject implements TestOnly
|
|||||||
private static $table_name = 'GridFieldAction_SortOrder_VPlayer';
|
private static $table_name = 'GridFieldAction_SortOrder_VPlayer';
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Name' => 'Varchar',
|
'Name' => DBVarchar:class,
|
||||||
'SortOrder' => 'Int'
|
'SortOrder' => DBInt::class
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $default_sort = 'SortOrder';
|
private static $default_sort = 'SortOrder';
|
||||||
@ -322,7 +324,7 @@ class GridFieldAction_SortOrder_TestParent extends DataObject implements TestOnl
|
|||||||
private static $table_name = 'GridFieldAction_SortOrder_TestParent';
|
private static $table_name = 'GridFieldAction_SortOrder_TestParent';
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Name' => 'Varchar'
|
'Name' => DBVarchar::class
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $has_many = array(
|
private static $has_many = array(
|
||||||
@ -341,7 +343,7 @@ class GridFieldAction_SortOrder_BaseObject extends DataObject implements TestOnl
|
|||||||
private static $table_name = 'GridFieldAction_SortOrder_BaseObject';
|
private static $table_name = 'GridFieldAction_SortOrder_BaseObject';
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Name' => 'Varchar'
|
'Name' => DBVarchar::class
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -357,7 +359,7 @@ class GridFieldAction_SortOrder_ChildObject extends GridFieldAction_SortOrder_Ba
|
|||||||
private static $table_name = 'GridFieldAction_SortOrder_ChildObject';
|
private static $table_name = 'GridFieldAction_SortOrder_ChildObject';
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'SortOrder' => 'Int'
|
'SortOrder' => DBInt::class
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $has_one = array(
|
private static $has_one = array(
|
||||||
|
@ -14,6 +14,8 @@ use SilverStripe\Forms\GridField\GridField;
|
|||||||
use SilverStripe\Forms\GridField\GridFieldConfig_Base;
|
use SilverStripe\Forms\GridField\GridFieldConfig_Base;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\ORM\ArrayList;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
|
use SilverStripe\ORM\FieldType\DBInt;
|
||||||
|
use SilverStripe\ORM\FieldType\DBVarchar;
|
||||||
use SilverStripe\Versioned\Versioned;
|
use SilverStripe\Versioned\Versioned;
|
||||||
use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows;
|
use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows;
|
||||||
|
|
||||||
@ -204,9 +206,9 @@ class GridFieldAction_PageSortOrder_Team extends DataObject implements TestOnly
|
|||||||
private static $table_name = 'GridFieldAction_PageSortOrder_Team';
|
private static $table_name = 'GridFieldAction_PageSortOrder_Team';
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Name' => 'Varchar',
|
'Name' => DBVarchar::class,
|
||||||
'City' => 'Varchar',
|
'City' => DBVarchar::class,
|
||||||
'SortOrder' => 'Int'
|
'SortOrder' => DBInt::class
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $default_sort = 'SortOrder';
|
private static $default_sort = 'SortOrder';
|
||||||
@ -225,9 +227,9 @@ class GridFieldAction_PageSortOrder_VTeam extends DataObject implements TestOnly
|
|||||||
private static $table_name = 'GridFieldAction_PageSortOrder_VTeam';
|
private static $table_name = 'GridFieldAction_PageSortOrder_VTeam';
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Name' => 'Varchar',
|
'Name' => DBVarchar::class,
|
||||||
'City' => 'Varchar',
|
'City' => DBVarchar::class,
|
||||||
'SortOrder' => 'Int'
|
'SortOrder' => DBInt::class
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $default_sort = 'SortOrder';
|
private static $default_sort = 'SortOrder';
|
||||||
|
@ -14,6 +14,8 @@ use SilverStripe\Forms\GridField\GridFieldConfig;
|
|||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\ORM\ArrayList;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\ValidationException;
|
use SilverStripe\ORM\ValidationException;
|
||||||
|
use SilverStripe\ORM\FieldType\DBInt;
|
||||||
|
use SilverStripe\ORM\FieldType\DBVarchar;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
use SilverStripe\Versioned\Versioned;
|
use SilverStripe\Versioned\Versioned;
|
||||||
use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows;
|
use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows;
|
||||||
@ -133,9 +135,9 @@ class GridFieldAction_SortOrder_Team extends DataObject implements TestOnly
|
|||||||
private static $table_name = 'GridFieldAction_SortOrder_Team';
|
private static $table_name = 'GridFieldAction_SortOrder_Team';
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Name' => 'Varchar',
|
'Name' => DBVarchar:class,
|
||||||
'City' => 'Varchar',
|
'City' => DBVarchar:class,
|
||||||
'SortOrder' => 'Int'
|
'SortOrder' => DBInt:class
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $default_sort = 'SortOrder';
|
private static $default_sort = 'SortOrder';
|
||||||
@ -154,9 +156,9 @@ class GridFieldAction_SortOrder_VTeam extends DataObject implements TestOnly
|
|||||||
private static $table_name = 'GridFieldAction_SortOrder_VTeam';
|
private static $table_name = 'GridFieldAction_SortOrder_VTeam';
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Name' => 'Varchar',
|
'Name' => DBVarchar:class,
|
||||||
'City' => 'Varchar',
|
'City' => DBVarchar:class,
|
||||||
'SortOrder' => 'Int'
|
'SortOrder' => DBInt::class
|
||||||
);
|
);
|
||||||
private static $default_sort = 'SortOrder';
|
private static $default_sort = 'SortOrder';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user