mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR: Added more explicit test to aid w/ debugging.
This commit is contained in:
parent
7a2097dbd0
commit
1821ccbb7d
@ -272,6 +272,12 @@ class VirtualPageTest extends SapphireTest {
|
||||
|
||||
// Unpublish the source page, confirm that the virtual page has also been unpublished
|
||||
$p->doUnpublish();
|
||||
|
||||
// The draft VP still has the CopyContentFromID link
|
||||
$vp->flushCache();
|
||||
$vp = DataObject::get_by_id('SiteTree', $vp->ID);
|
||||
$this->assertEquals($p->ID, $vp->CopyContentFromID);
|
||||
|
||||
$vpLive = Versioned::get_one_by_stage('SiteTree', 'Live', '"SiteTree"."ID" = ' . $vp->ID);
|
||||
$this->assertNull($vpLive);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user