mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Merge branch '1' into 2
This commit is contained in:
commit
19b125829a
@ -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,6 +5,10 @@ namespace SilverStripe\FrameworkTest\Elemental\Extension;
|
|||||||
use DNADesign\Elemental\Extensions\ElementalAreasExtension;
|
use DNADesign\Elemental\Extensions\ElementalAreasExtension;
|
||||||
use DNADesign\Elemental\Models\ElementalArea;
|
use DNADesign\Elemental\Models\ElementalArea;
|
||||||
|
|
||||||
|
if (!class_exists(ElementalAreasExtension::class)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is used to test multiple elemental areas on a page
|
* This is used to test multiple elemental areas on a page
|
||||||
*/
|
*/
|
||||||
|
@ -3,7 +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;
|
|
||||||
|
|
||||||
class MultiElementalBehatTestObject extends DataObject
|
class MultiElementalBehatTestObject extends DataObject
|
||||||
{
|
{
|
||||||
@ -13,26 +12,22 @@ class MultiElementalBehatTestObject extends DataObject
|
|||||||
|
|
||||||
private static $table_name = 'ElementalMultiBehatTestObject';
|
private static $table_name = 'ElementalMultiBehatTestObject';
|
||||||
|
|
||||||
private static $extensions = [
|
public function canView($member = null)
|
||||||
MultiElementalAreasExtension::class,
|
|
||||||
];
|
|
||||||
|
|
||||||
public function canView($member = null)
|
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function canEdit($member = null)
|
public function canEdit($member = null)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function canDelete($member = null)
|
public function canDelete($member = null)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function canCreate($member = null, $context = [])
|
public function canCreate($member = null, $context = [])
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user