mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
368033942c
commit
0cc6d2b764
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user