MINOR Fixed VersionedTest arguments in test case (from r102018)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112057 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-13 01:27:26 +00:00
parent 368033942c
commit 0cc6d2b764

View File

@ -85,7 +85,7 @@ class VersionedTest extends SapphireTest {
$changedVersion = $page1->Version; $changedVersion = $page1->Version;
$page1->doRollbackTo($origVersion); $page1->doRollbackTo($origVersion);
$page1 = Versioned::get_one_by_stage('Page', 'Stage', $page1->ID); $page1 = Versioned::get_one_by_stage('Page', 'Stage', sprintf('"SiteTree"."ID" = %d', $page1->ID));
$this->assertTrue($page1->Version > $changedVersion, 'Create a new higher version number'); $this->assertTrue($page1->Version > $changedVersion, 'Create a new higher version number');
$this->assertEquals('orig', $page1->Content, 'Copies the content from the old version'); $this->assertEquals('orig', $page1->Content, 'Copies the content from the old version');