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,8 +268,10 @@ abstract class SilverStripeContext extends MinkContext implements SilverStripeAw
|
||||
}
|
||||
DataObject::flush_and_destroy_cache();
|
||||
DataObject::reset();
|
||||
if (class_exists(SiteTree::class)) {
|
||||
SiteTree::reset();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a parameter map of state to set within the test session.
|
||||
|
Loading…
Reference in New Issue
Block a user