diff --git a/tests/SubsitesVirtualPageTest.php b/tests/SubsitesVirtualPageTest.php index 0935a54..be84d94 100644 --- a/tests/SubsitesVirtualPageTest.php +++ b/tests/SubsitesVirtualPageTest.php @@ -69,21 +69,20 @@ class SubsitesVirtualPageTest extends SapphireTest { $page = $this->objFromFixture('Page', 'page1'); $this->assertTrue($page->doPublish()); + // Create a virtual page from it, and publish that $svp = new SubsitesVirtualPage(); $svp->CopyContentFromID = $page->ID; $svp->write(); $svp->doPublish(); - - // Create a virtual page from it, and publish that // Rename the file $file = $this->objFromFixture('File', 'file1'); $file->Name = 'renamed-test-file.pdf'; // Verify that the draft and publish virtual pages both have the corrected link - $this->assertContains('', + $this->assertContains('ID")->value()); - $this->assertContains('', + $this->assertContains('ID")->value()); // File teardown