silverstripe-framework/tests/php/ORM/VersionableExtensionsTest/TestObject.php

26 lines
591 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\ORM\Tests\VersionableExtensionsTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\Versioning\Versioned;
class TestObject extends DataObject implements TestOnly
{
private static $table_name = 'VersionableExtensionsTest_DataObject';
2016-10-14 03:30:05 +02:00
private static $db = array(
'Title' => 'Varchar'
);
2016-10-14 03:30:05 +02:00
private static $extensions = [
Versioned::class,
TestExtension::class,
];
2016-10-14 03:30:05 +02:00
private static $versionableExtensions = [
TestExtension::class => ['test1', 'test2', 'test3']
];
2016-10-14 03:30:05 +02:00
}