mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Fixed CMSMainTest to check for translated entities to avoid failing tests with i18n enabled
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65024 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
aa3437c4d4
commit
fa2a2df551
@ -12,7 +12,10 @@ class CMSMainTest extends SapphireTest {
|
||||
));
|
||||
|
||||
$response = Director::test("admin/cms/publishall", array('confirm' => 1), $session);
|
||||
$this->assertContains('Done: Published 5 pages', $response->getBody());
|
||||
$this->assertContains(
|
||||
sprintf(_t('CMSMain.PUBPAGES',"Done: Published %d pages"), 5),
|
||||
$response->getBody()
|
||||
);
|
||||
|
||||
$response = Director::test("admin/cms/publishitems", array('csvIDs' => '1,2', 'ajax' => 1), $session);
|
||||
$this->assertContains('setNodeTitle(1, \'Page 1\');', $response->getBody());
|
||||
|
Loading…
Reference in New Issue
Block a user