From 4896a1f486dd37d8fff11b70bb3e7ce30c1a0439 Mon Sep 17 00:00:00 2001
From: Amitaibu <amitai@gizra.com>
Date: Fri, 26 Nov 2010 09:03:31 +0200
Subject: [PATCH] Fix use of wrong field -- og-access tests now pass.

---
 og_access/og_access.test | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/og_access/og_access.test b/og_access/og_access.test
index cddf38060..84de7d830 100644
--- a/og_access/og_access.test
+++ b/og_access/og_access.test
@@ -16,7 +16,7 @@ class OgAccessTestCase extends DrupalWebTestCase {
 
   function setUp() {
     parent::setUp('entity', 'og', 'og_access');
-    node_access_rebuild(TRUE);
+    node_access_rebuild();
   }
 
   /**
@@ -91,7 +91,7 @@ class OgAccessTestCase extends DrupalWebTestCase {
     // Create a group content node and set default access.
     $settings = array();
     $settings['type'] = $group_content_type->type;
-    $settings[OG_GROUP_FIELD][LANGUAGE_NONE][0]['gid'] = $group->gid;
+    $settings[OG_AUDIENCE_FIELD][LANGUAGE_NONE][0]['gid'] = $group->gid;
     $settings[OG_CONTENT_ACCESS_FIELD][LANGUAGE_NONE][0]['value'] = OG_CONTENT_ACCESS_DEFAULT;
 
     $group_content_node = $this->drupalCreateNode($settings);
-- 
GitLab