Merge pull request #6640 from dhensby/pulls/4/test-cleanup

Ensure test objects implement TestOnly
This commit is contained in:
Damian Mooyman 2017-02-22 10:36:45 +13:00 committed by GitHub
commit 129fd9146c
3 changed files with 7 additions and 3 deletions

View File

@ -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';

View File

@ -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()

View File

@ -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';