mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
FIX Only add extension if elemental module exists
This commit is contained in:
parent
ce4dec4ea7
commit
d0deef8719
@ -20,3 +20,7 @@ SilverStripe\FrameworkTest\Elemental\Model\ElementalBehatTestObject:
|
|||||||
extensions:
|
extensions:
|
||||||
- DNADesign\Elemental\Extensions\ElementalAreasExtension
|
- DNADesign\Elemental\Extensions\ElementalAreasExtension
|
||||||
- SilverStripe\FrameworkTest\Elemental\Extension\ElementalBehatTestExtension
|
- SilverStripe\FrameworkTest\Elemental\Extension\ElementalBehatTestExtension
|
||||||
|
|
||||||
|
BasicElementalPage:
|
||||||
|
extensions:
|
||||||
|
- DNADesign\Elemental\Extensions\ElementalPageExtension
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
// DNADesign\Elemental\Extensions\ElementalPageExtension is added in extensions.yml
|
||||||
use DNADesign\Elemental\Extensions\ElementalPageExtension;
|
|
||||||
|
|
||||||
class BasicElementalPage extends Page
|
class BasicElementalPage extends Page
|
||||||
{
|
{
|
||||||
private static $extensions = [
|
|
||||||
ElementalPageExtension::class,
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user