diff --git a/tests/SecurityAdminTest.php b/tests/SecurityAdminTest.php index 0f821d95..d29f2ef8 100644 --- a/tests/SecurityAdminTest.php +++ b/tests/SecurityAdminTest.php @@ -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() + ); } }