mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
b5f0950c29
commit
376e7bf3b0
@ -48,6 +48,11 @@ class CMSMainTest extends FunctionalTest {
|
||||
$this->assertTrue(property_exists($responseData['modified'], '1'));
|
||||
$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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user