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
- SilverStripe\FrameworkTest\Elemental\Extension\ElementalBehatTestExtension
SilverStripe\FrameworkTest\Elemental\Model\MultiElementalBehatTestObject:
extensions:
- SilverStripe\FrameworkTest\Elemental\Extension\MultiElementalAreasExtension
BasicElementalPage:
extensions:
- DNADesign\Elemental\Extensions\ElementalPageExtension
@ -69,7 +73,6 @@ SilverStripe\FrameworkTest\Model\Company:
extensions:
- SilverStripe\FrameworkTest\LinkField\Extensions\CompanyExtension
---
Only:
moduleexists:

View File

@ -5,6 +5,10 @@ namespace SilverStripe\FrameworkTest\Elemental\Extension;
use DNADesign\Elemental\Extensions\ElementalAreasExtension;
use DNADesign\Elemental\Models\ElementalArea;
if (!class_exists(ElementalAreasExtension::class)) {
return;
}
/**
* This is used to test multiple elemental areas on a page
*/

View File

@ -3,7 +3,6 @@
namespace SilverStripe\FrameworkTest\Elemental\Model;
use SilverStripe\ORM\DataObject;
use SilverStripe\FrameworkTest\Elemental\Extension\MultiElementalAreasExtension;
class MultiElementalBehatTestObject extends DataObject
{
@ -13,10 +12,6 @@ class MultiElementalBehatTestObject extends DataObject
private static $table_name = 'ElementalMultiBehatTestObject';
private static $extensions = [
MultiElementalAreasExtension::class,
];
public function canView($member = null)
{
return true;