# Enable OG-UI, so drush will auto-download all dependencies
-drush --yes pm-enable og_ui
# start a web server on port 8080, run in the background; wait for initialization
# Create webserver for the Simpletest
# Mandatory despite the fact that the tests can be
# executed from CLI!
-drush runserver 127.0.0.1:8080 &
-until netstat -an 2>/dev/null | grep '8080.*LISTEN'; do true; done
script:drush test-run "Organic groups","Organic groups access","Organic groups context","Organic groups field access","Organic groups UI" --uri=http://127.0.0.1:8080
@@ -122,11 +122,7 @@ class OgBehaviorHandler extends EntityReference_BehaviorHandler_Abstract {
foreach($itemsas$item){
$gid=$item['target_id'];
// Must provide correct state in the event that approval is required.
if(empty($item['state'])&&$entity_type=='user'&&!og_user_access($group_type,$gid,'subscribe without approval',$entity)&&!og_user_access($group_type,$gid,'administer group')){