mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
FIX Only include extension if elemental is installed (#196)
This commit is contained in:
parent
579e1602e6
commit
f380700ea6
@ -53,6 +53,10 @@ SilverStripe\FrameworkTest\Elemental\Model\ElementalBehatTestObject:
|
|||||||
- DNADesign\Elemental\Extensions\ElementalAreasExtension
|
- DNADesign\Elemental\Extensions\ElementalAreasExtension
|
||||||
- SilverStripe\FrameworkTest\Elemental\Extension\ElementalBehatTestExtension
|
- SilverStripe\FrameworkTest\Elemental\Extension\ElementalBehatTestExtension
|
||||||
|
|
||||||
|
SilverStripe\FrameworkTest\Elemental\Model\MultiElementalBehatTestObject:
|
||||||
|
extensions:
|
||||||
|
- SilverStripe\FrameworkTest\Elemental\Extension\MultiElementalAreasExtension
|
||||||
|
|
||||||
BasicElementalPage:
|
BasicElementalPage:
|
||||||
extensions:
|
extensions:
|
||||||
- DNADesign\Elemental\Extensions\ElementalPageExtension
|
- DNADesign\Elemental\Extensions\ElementalPageExtension
|
||||||
@ -69,7 +73,6 @@ SilverStripe\FrameworkTest\Model\Company:
|
|||||||
extensions:
|
extensions:
|
||||||
- SilverStripe\FrameworkTest\LinkField\Extensions\CompanyExtension
|
- SilverStripe\FrameworkTest\LinkField\Extensions\CompanyExtension
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
Only:
|
Only:
|
||||||
moduleexists:
|
moduleexists:
|
||||||
|
@ -5,10 +5,6 @@ namespace SilverStripe\FrameworkTest\Elemental\Admin;
|
|||||||
use SilverStripe\Admin\ModelAdmin;
|
use SilverStripe\Admin\ModelAdmin;
|
||||||
use SilverStripe\FrameworkTest\Elemental\Model\MultiElementalBehatTestObject;
|
use SilverStripe\FrameworkTest\Elemental\Model\MultiElementalBehatTestObject;
|
||||||
|
|
||||||
if (!class_exists(MultiElementalBehatTestObject::class)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
class MutliElementalBehatTestAdmin extends ModelAdmin
|
class MutliElementalBehatTestAdmin extends ModelAdmin
|
||||||
{
|
{
|
||||||
private static $url_segment = 'multi-elemental-behat-test-admin';
|
private static $url_segment = 'multi-elemental-behat-test-admin';
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
namespace SilverStripe\FrameworkTest\Elemental\Model;
|
namespace SilverStripe\FrameworkTest\Elemental\Model;
|
||||||
|
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\FrameworkTest\Elemental\Extension\MultiElementalAreasExtension;
|
|
||||||
|
|
||||||
if (!class_exists(MultiElementalAreasExtension::class)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
class MultiElementalBehatTestObject extends DataObject
|
class MultiElementalBehatTestObject extends DataObject
|
||||||
{
|
{
|
||||||
@ -17,10 +12,6 @@ class MultiElementalBehatTestObject extends DataObject
|
|||||||
|
|
||||||
private static $table_name = 'ElementalMultiBehatTestObject';
|
private static $table_name = 'ElementalMultiBehatTestObject';
|
||||||
|
|
||||||
private static $extensions = [
|
|
||||||
MultiElementalAreasExtension::class,
|
|
||||||
];
|
|
||||||
|
|
||||||
public function canView($member = null)
|
public function canView($member = null)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user