From 66950a84b2e17b0bc866a1120cfa561679196adc Mon Sep 17 00:00:00 2001 From: James Rhodes Date: Thu, 25 Sep 2014 09:46:17 +1000 Subject: [PATCH] Fix failing test in PhabricatorPolicyDataTestCase caused by membership locking Summary: This fixes a unit test failure that started occurring due to the new membership locking feature. Test Plan: Ran the unit tests. Reviewers: btrahan, epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D10546 --- .../policy/__tests__/PhabricatorPolicyDataTestCase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php b/src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php index 1e74f8bc9e..7f3c22666d 100644 --- a/src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php +++ b/src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php @@ -16,12 +16,14 @@ final class PhabricatorPolicyDataTestCase extends PhabricatorTestCase { ->setAuthorPHID($author->getPHID()) ->setIcon(PhabricatorProject::DEFAULT_ICON) ->setColor(PhabricatorProject::DEFAULT_COLOR) + ->setIsMembershipLocked(0) ->save(); $proj_b = id(new PhabricatorProject()) ->setName('B') ->setAuthorPHID($author->getPHID()) ->setIcon(PhabricatorProject::DEFAULT_ICON) ->setColor(PhabricatorProject::DEFAULT_COLOR) + ->setIsMembershipLocked(0) ->save(); $proj_a->setViewPolicy($proj_b->getPHID())->save();