mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
FIX Remove providePermissions tests
Removed the testProvidePermissions case since it is testing localisations that do not exist, and a localisation that belongs to the framework which should not be tested here.
This commit is contained in:
parent
f27b357b06
commit
c02d851500
@ -2,35 +2,8 @@
|
||||
|
||||
class CommentAdminTest extends SapphireTest
|
||||
{
|
||||
|
||||
protected $usesDatabase = true;
|
||||
|
||||
public function testProvidePermissions()
|
||||
{
|
||||
$commentAdmin = new CommentAdmin();
|
||||
$locale = i18n::get_locale();
|
||||
|
||||
i18n::set_locale('fr');
|
||||
$expected = array(
|
||||
'CMS_ACCESS_CommentAdmin' => array(
|
||||
# FIXME - this is a bug, missing from lang.yml files
|
||||
'name' => 'Access to \'Comments\' section',
|
||||
'category' => 'Accès au CMS'
|
||||
)
|
||||
);
|
||||
$this->assertEquals($expected, $commentAdmin->providePermissions());
|
||||
|
||||
i18n::set_locale($locale);
|
||||
$expected = array(
|
||||
'CMS_ACCESS_CommentAdmin' => array(
|
||||
# FIXME - this is a bug, missing from lang.yml files
|
||||
'name' => 'Access to \'Comments\' section',
|
||||
'category' => 'CMS Access'
|
||||
)
|
||||
);
|
||||
$this->assertEquals($expected, $commentAdmin->providePermissions());
|
||||
}
|
||||
|
||||
public function testGetEditForm()
|
||||
{
|
||||
$commentAdmin = new CommentAdmin();
|
||||
|
Loading…
Reference in New Issue
Block a user