mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
dbcd2f6c2b
commit
c6a8ad67fa
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user