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
|
||||
- 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:
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user