Merge branch '1' into 2

This commit is contained in:
github-actions 2024-07-30 01:48:38 +00:00
commit 19b125829a
3 changed files with 12 additions and 10 deletions

View File

@ -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:

View File

@ -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
*/ */

View File

@ -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;
} }