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
|
<?php
|
||||||
|
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
|
|
||||||
class BasicFieldsTestFileExtension extends DataExtension
|
class BasicFieldsTestFileExtension extends Extension
|
||||||
{
|
{
|
||||||
private static $has_one = [
|
private static $has_one = [
|
||||||
'TestPage' => BasicFieldsTestPage::class,
|
'TestPage' => BasicFieldsTestPage::class,
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use SilverStripe\Core\Config\Configurable;
|
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.
|
* There is no good place to put this setting, so it gets a class.
|
||||||
*/
|
*/
|
||||||
class DevBuildGeneratorExtension extends DataExtension
|
class DevBuildGeneratorExtension extends Extension
|
||||||
{
|
{
|
||||||
use Configurable;
|
use Configurable;
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
class FileUploadRole extends DataExtension
|
|
||||||
|
class FileUploadRole extends Extension
|
||||||
{
|
{
|
||||||
private static $has_one = array(
|
private static $has_one = array(
|
||||||
'AFile' => 'SilverStripe\\Assets\\File',
|
'AFile' => 'SilverStripe\\Assets\\File',
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
class FrameworkTestFileExtension extends DataExtension
|
|
||||||
|
class FrameworkTestFileExtension extends Extension
|
||||||
{
|
{
|
||||||
private static $has_one = array(
|
private static $has_one = array(
|
||||||
'Company' => 'SilverStripe\\FrameworkTest\\Model\\Company',
|
'Company' => 'SilverStripe\\FrameworkTest\\Model\\Company',
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
|
|
||||||
class FrameworkTestModelAdminExtension extends DataExtension
|
class FrameworkTestModelAdminExtension extends Extension
|
||||||
{
|
{
|
||||||
private static $page_length = 3;
|
private static $page_length = 3;
|
||||||
}
|
}
|
||||||
|
@ -2,14 +2,12 @@
|
|||||||
|
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\DB;
|
use SilverStripe\ORM\DB;
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
use SilverStripe\Forms\FieldList;
|
use SilverStripe\Forms\FieldList;
|
||||||
use SilverStripe\Forms\TreeDropdownField;
|
use SilverStripe\Forms\TreeDropdownField;
|
||||||
|
|
||||||
|
class FrameworkTestRole extends Extension
|
||||||
|
|
||||||
class FrameworkTestRole extends DataExtension
|
|
||||||
{
|
{
|
||||||
|
|
||||||
private static $has_one = array(
|
private static $has_one = array(
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
class FrameworkTestSiteTreeExtension extends DataExtension
|
|
||||||
|
class FrameworkTestSiteTreeExtension extends Extension
|
||||||
{
|
{
|
||||||
private static $has_one = array('RelationFieldsTestPage' => 'RelationFieldsTestPage');
|
private static $has_one = array('RelationFieldsTestPage' => 'RelationFieldsTestPage');
|
||||||
private static $belongs_many_many = array('RelationFieldsTestPages' => 'RelationFieldsTestPage');
|
private static $belongs_many_many = array('RelationFieldsTestPages' => 'RelationFieldsTestPage');
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
namespace SilverStripe\FrameworkTest\Extension;
|
namespace SilverStripe\FrameworkTest\Extension;
|
||||||
|
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
use SilverStripe\Security\Permission;
|
use SilverStripe\Security\Permission;
|
||||||
use SilverStripe\Security\PermissionProvider;
|
use SilverStripe\Security\PermissionProvider;
|
||||||
|
|
||||||
class TestDataObjectExtension extends DataExtension implements PermissionProvider
|
class TestDataObjectExtension extends Extension implements PermissionProvider
|
||||||
{
|
{
|
||||||
public function providePermissions()
|
public function providePermissions()
|
||||||
{
|
{
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
namespace SilverStripe\FrameworkTest\Elemental\Extension;
|
namespace SilverStripe\FrameworkTest\Elemental\Extension;
|
||||||
|
|
||||||
use DNADesign\Elemental\Models\ElementalArea;
|
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 = [
|
private static $has_one = [
|
||||||
'ElementalArea' => ElementalArea::class,
|
'ElementalArea' => ElementalArea::class,
|
||||||
|
Loading…
Reference in New Issue
Block a user