mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6640 from dhensby/pulls/4/test-cleanup
Ensure test objects implement TestOnly
This commit is contained in:
commit
129fd9146c
@ -2,13 +2,14 @@
|
||||
|
||||
namespace SilverStripe\Forms\Tests\FormFactoryTest;
|
||||
|
||||
use SilverStripe\Dev\TestOnly;
|
||||
use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\Versioning\Versioned;
|
||||
|
||||
/**
|
||||
* @mixin Versioned
|
||||
*/
|
||||
class TestObject extends DataObject
|
||||
class TestObject extends DataObject implements TestOnly
|
||||
{
|
||||
private static $table_name = 'FormFactoryTest_TestObject';
|
||||
|
||||
|
@ -12,6 +12,7 @@ use SilverStripe\Forms\GridField\GridFieldConfig;
|
||||
use SilverStripe\Forms\GridField\GridFieldPageCount;
|
||||
use SilverStripe\Forms\GridField\GridFieldPaginator;
|
||||
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
||||
use SilverStripe\Forms\Tests\GridField\GridFieldTest\Cheerleader;
|
||||
use SilverStripe\Forms\Tests\GridField\GridFieldTest\Player;
|
||||
use SilverStripe\Forms\Tests\GridField\GridFieldTest\Team;
|
||||
use SilverStripe\ORM\ArrayList;
|
||||
@ -44,7 +45,8 @@ class GridFieldPaginatorTest extends FunctionalTest
|
||||
*/
|
||||
protected $extraDataObjects = array(
|
||||
Team::class,
|
||||
Player::class
|
||||
Player::class,
|
||||
Cheerleader::class,
|
||||
);
|
||||
|
||||
public function setUp()
|
||||
|
@ -2,13 +2,14 @@
|
||||
|
||||
namespace SilverStripe\ORM\Tests\ChangeSetItemTest;
|
||||
|
||||
use SilverStripe\Dev\TestOnly;
|
||||
use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\Versioning\Versioned;
|
||||
|
||||
/**
|
||||
* @mixin Versioned
|
||||
*/
|
||||
class VersionedObject extends DataObject
|
||||
class VersionedObject extends DataObject implements TestOnly
|
||||
{
|
||||
private static $table_name = 'ChangeSetItemTest_Versioned';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user