mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
FIX Don't require classes that don't exist (#195)
This commit is contained in:
parent
0370f64bbd
commit
579e1602e6
@ -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';
|
||||
|
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user