BUGFIX Fixed SecurityAdminTest to work with i18n enabled

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65028 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-01 13:55:47 +00:00
parent dbcd2f6c2b
commit c6a8ad67fa

View File

@ -13,7 +13,10 @@ class SecurityAdminTest extends FunctionalTest {
/* Then load the export page */
$this->get('admin/security//EditForm/field/Members/export');
$this->assertRegExp('/"FirstName","Surname","Email"/', $this->content());
$this->assertRegExp(
'/"' . _t('MemberTableField.FIRSTNAME') . '","' . _t('MemberTableField.SURNAME') . '","' . _t('MemberTableField.EMAIL') . '"/',
$this->content()
);
$this->assertRegExp('/"","","admin@example.com"/', $this->content());
}
@ -27,7 +30,10 @@ class SecurityAdminTest extends FunctionalTest {
/* Then load the export page */
$this->get('admin/security//EditForm/field/Members/export');
$this->assertRegExp('/"FirstName","Surname","Email"/', $this->content());
$this->assertRegExp(
'/"' . _t('MemberTableField.FIRSTNAME') . '","' . _t('MemberTableField.SURNAME') . '","' . _t('MemberTableField.EMAIL') . '"/',
$this->content()
);
}
}