Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 0cc6d2b764f1e7bbd60cbccb1cf3d02298250a8b 1 parent 3680339
@sminnee sminnee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/model/VersionedTest.php
View
2  tests/model/VersionedTest.php
@@ -85,7 +85,7 @@ function testRollbackTo() {
$changedVersion = $page1->Version;
$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->assertEquals('orig', $page1->Content, 'Copies the content from the old version');
Please sign in to comment.
Something went wrong with that request. Please try again.