mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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
@ -49,6 +49,11 @@ class CMSMainTest extends FunctionalTest {
|
|||||||
$this->assertTrue(property_exists($responseData['modified'], '2'));
|
$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->session()->clear('loggedInAs');
|
||||||
|
|
||||||
//$this->assertRegexp('/Done: Published 4 pages/', $response->getBody())
|
//$this->assertRegexp('/Done: Published 4 pages/', $response->getBody())
|
||||||
|
Loading…
Reference in New Issue
Block a user