@@ -721,6 +720,54 @@ class OgPermissionsTestCase extends DrupalWebTestCase {
$this->assertTrue(og_user_access('entity_test',$entity->pid,'delete own article content',$user2),t('User still has "delete own article content" as they have "administer group" permission.'));
$this->assertTrue(og_user_access('entity_test',$entity->pid,'administer group',$user2),t('User has "administer group" permission.'));
}
/**
* Assert blocked and pending roles influence the allowed permissions.
@@ -954,7 +1001,7 @@ class OgMigrate7000TestCase extends UpgradePathTestCase {
// Pass also pending state, so we make sure that even if the user
// isn't active they are considered members, to check they get the
// correct role.
$this->assertEqual(array_keys(og_get_user_roles('node',10,$uid)),array_keys($roles),format_string('User @uid has the correct roles in group.',array('@uid'=>$uid)));
$this->assertEqual(array_keys(og_get_user_roles('node',10,$uid,TRUE,FALSE)),array_keys($roles),format_string('User @uid has the correct roles in group.',array('@uid'=>$uid)));