mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #860 from ajshort/virtual-page-test-cache
Fix test sometimes using cached relationship object.
This commit is contained in:
commit
64608ea622
@ -499,6 +499,8 @@ class VirtualPageTest extends SapphireTest {
|
||||
|
||||
$virtual = DataObject::get_by_id('VirtualPage', $virtual->ID, false);
|
||||
$virtual->CopyContentFromID = $notRootPage->ID;
|
||||
$virtual->flushCache();
|
||||
|
||||
$isDetected = false;
|
||||
try {
|
||||
$virtual->write();
|
||||
|
Loading…
Reference in New Issue
Block a user