Merge pull request #860 from ajshort/virtual-page-test-cache

Fix test sometimes using cached relationship object.
This commit is contained in:
Ingo Schommer 2013-10-02 02:44:28 -07:00
commit 64608ea622

View File

@ -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();