-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #329 from creative-commoners/pulls/3/default-sort-…
…unit-test MNT Add unit tests for default sort
- Loading branch information
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Symbiote\GridFieldExtensions\Tests\Stub; | ||
|
||
use SilverStripe\Dev\TestOnly; | ||
use SilverStripe\ORM\DataObject; | ||
|
||
class TitleObject extends DataObject implements TestOnly | ||
{ | ||
private static $db = [ | ||
'Title' => 'Varchar', | ||
]; | ||
|
||
private static $table_name = 'TitleObject'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Symbiote\GridFieldExtensions\Tests\Stub; | ||
|
||
use SilverStripe\Dev\TestOnly; | ||
use SilverStripe\ORM\DataObject; | ||
|
||
class TitleSortedObject extends DataObject implements TestOnly | ||
{ | ||
private static $db = [ | ||
'Title' => 'Varchar', | ||
'Iden' => 'Varchar', | ||
'DefaultSort' => 'Int' | ||
]; | ||
|
||
private static $default_sort = '"DefaultSort" ASC'; | ||
|
||
private static $table_name = 'TitleSortedObject'; | ||
} |