array( 'name' => 'Accès à la section Commentaires', 'category' => 'CMS Access' // missing in core ) ); $this->assertEquals($expected, $commentAdmin->providePermissions()); i18n::set_locale($locale); $expected = array( 'CMS_ACCESS_CommentAdmin' => array( 'name' => 'Access to \'Comments\' section', 'category' => 'CMS Access' ) ); $this->assertEquals($expected, $commentAdmin->providePermissions()); } }