diff --git a/code/elemental/MultiElementalBehatTestAdmin.php b/code/elemental/MultiElementalBehatTestAdmin.php index 663a084..29241e1 100644 --- a/code/elemental/MultiElementalBehatTestAdmin.php +++ b/code/elemental/MultiElementalBehatTestAdmin.php @@ -5,6 +5,10 @@ namespace SilverStripe\FrameworkTest\Elemental\Admin; use SilverStripe\Admin\ModelAdmin; use SilverStripe\FrameworkTest\Elemental\Model\MultiElementalBehatTestObject; +if (!class_exists(MultiElementalBehatTestObject::class)) { + return; +} + class MutliElementalBehatTestAdmin extends ModelAdmin { private static $url_segment = 'multi-elemental-behat-test-admin'; diff --git a/code/elemental/MutliElementalBehatTestObject.php b/code/elemental/MutliElementalBehatTestObject.php index 0d3b9f0..dd593d8 100644 --- a/code/elemental/MutliElementalBehatTestObject.php +++ b/code/elemental/MutliElementalBehatTestObject.php @@ -5,6 +5,10 @@ namespace SilverStripe\FrameworkTest\Elemental\Model; use SilverStripe\ORM\DataObject; use SilverStripe\FrameworkTest\Elemental\Extension\MultiElementalAreasExtension; +if (!class_exists(MultiElementalAreasExtension::class)) { + return; +} + class MultiElementalBehatTestObject extends DataObject { private static $db = [ @@ -17,22 +21,22 @@ class MultiElementalBehatTestObject extends DataObject MultiElementalAreasExtension::class, ]; - public function canView($member = null) + public function canView($member = null) { return true; } - public function canEdit($member = null) + public function canEdit($member = null) { return true; } - public function canDelete($member = null) + public function canDelete($member = null) { return true; } - public function canCreate($member = null, $context = []) + public function canCreate($member = null, $context = []) { return true; }