mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
FIX: Soften coupling to SiteTree
The SiteTree link still exists but the module will work if SiteTree isn’t installed.
This commit is contained in:
parent
7383c1bce9
commit
4f3d3fdbab
@ -268,7 +268,9 @@ abstract class SilverStripeContext extends MinkContext implements SilverStripeAw
|
|||||||
}
|
}
|
||||||
DataObject::flush_and_destroy_cache();
|
DataObject::flush_and_destroy_cache();
|
||||||
DataObject::reset();
|
DataObject::reset();
|
||||||
SiteTree::reset();
|
if (class_exists(SiteTree::class)) {
|
||||||
|
SiteTree::reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user