FIX Don't cause errors if elemental isn't installed (#194)

This commit is contained in:
Guy Sartorelli 2024-07-29 11:25:13 +12:00 committed by GitHub
parent 9aada4af47
commit 0370f64bbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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