mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Merge pull request #201 from creative-commoners/pulls/2/replace-extension-subclasses
API Replace Extension subclasses
This commit is contained in:
commit
6f7c396516
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Core\Extension;
|
||||
|
||||
class BasicFieldsTestFileExtension extends DataExtension
|
||||
class BasicFieldsTestFileExtension extends Extension
|
||||
{
|
||||
private static $has_one = [
|
||||
'TestPage' => BasicFieldsTestPage::class,
|
||||
|
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\Core\Config\Configurable;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Core\Extension;
|
||||
|
||||
/**
|
||||
* There is no good place to put this setting, so it gets a class.
|
||||
*/
|
||||
class DevBuildGeneratorExtension extends DataExtension
|
||||
class DevBuildGeneratorExtension extends Extension
|
||||
{
|
||||
use Configurable;
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
class FileUploadRole extends DataExtension
|
||||
use SilverStripe\Core\Extension;
|
||||
|
||||
class FileUploadRole extends Extension
|
||||
{
|
||||
private static $has_one = array(
|
||||
'AFile' => 'SilverStripe\\Assets\\File',
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
class FrameworkTestFileExtension extends DataExtension
|
||||
use SilverStripe\Core\Extension;
|
||||
|
||||
class FrameworkTestFileExtension extends Extension
|
||||
{
|
||||
private static $has_one = array(
|
||||
'Company' => 'SilverStripe\\FrameworkTest\\Model\\Company',
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Core\Extension;
|
||||
|
||||
class FrameworkTestModelAdminExtension extends DataExtension
|
||||
class FrameworkTestModelAdminExtension extends Extension
|
||||
{
|
||||
private static $page_length = 3;
|
||||
}
|
||||
|
@ -2,14 +2,12 @@
|
||||
|
||||
use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\DB;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Core\Extension;
|
||||
use SilverStripe\Security\Member;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\Forms\TreeDropdownField;
|
||||
|
||||
|
||||
|
||||
class FrameworkTestRole extends DataExtension
|
||||
class FrameworkTestRole extends Extension
|
||||
{
|
||||
|
||||
private static $has_one = array(
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
class FrameworkTestSiteTreeExtension extends DataExtension
|
||||
use SilverStripe\Core\Extension;
|
||||
|
||||
class FrameworkTestSiteTreeExtension extends Extension
|
||||
{
|
||||
private static $has_one = array('RelationFieldsTestPage' => 'RelationFieldsTestPage');
|
||||
private static $belongs_many_many = array('RelationFieldsTestPages' => 'RelationFieldsTestPage');
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
namespace SilverStripe\FrameworkTest\Extension;
|
||||
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Core\Extension;
|
||||
use SilverStripe\Security\Permission;
|
||||
use SilverStripe\Security\PermissionProvider;
|
||||
|
||||
class TestDataObjectExtension extends DataExtension implements PermissionProvider
|
||||
class TestDataObjectExtension extends Extension implements PermissionProvider
|
||||
{
|
||||
public function providePermissions()
|
||||
{
|
||||
|
@ -3,9 +3,9 @@
|
||||
namespace SilverStripe\FrameworkTest\Elemental\Extension;
|
||||
|
||||
use DNADesign\Elemental\Models\ElementalArea;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Core\Extension;
|
||||
|
||||
class ElementalBehatTestExtension extends DataExtension
|
||||
class ElementalBehatTestExtension extends Extension
|
||||
{
|
||||
private static $has_one = [
|
||||
'ElementalArea' => ElementalArea::class,
|
||||
|
Loading…
Reference in New Issue
Block a user