MINOR: Added test for #5657 (from r106081)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112485 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 02:35:17 +00:00
parent b5f0950c29
commit 376e7bf3b0

View File

@ -49,6 +49,11 @@ class CMSMainTest extends FunctionalTest {
$this->assertTrue(property_exists($responseData['modified'], '2'));
}
// Get the latest version of Page 1
$latestID = DB::query('select max("Version") from "Page_versions" where "RecordID"=1')->value();
$dsCount = DB::query('select count("Version") from "Page_versions" where "RecordID"=1 and "Version"=' . $latestID)->value();
$this->assertEquals(1, $dsCount, "Published page has no duplicate version records: it has " . $dsCount . " for version " . $latestID);
$this->session()->clear('loggedInAs');
//$this->assertRegexp('/Done: Published 4 pages/', $response->getBody())