mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Fix test sometimes using cached relationship object.
In some circumstances, the CopyContentFrom page will be cached, so when it is accessed the incorrect value was returned, meaning the test would fail.
This commit is contained in:
parent
e991b44994
commit
1f4cdfced8
@ -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