3 /*********************************************************************************
4 * By installing or using this file, you are confirming on behalf of the entity
5 * subscribed to the SugarCRM Inc. product ("Company") that Company is bound by
6 * the SugarCRM Inc. Master Subscription Agreement (“MSA”), which is viewable at:
7 * http://www.sugarcrm.com/master-subscription-agreement
9 * If Company is not bound by the MSA, then by installing or using this file
10 * you are agreeing unconditionally that Company will be bound by the MSA and
11 * certifying that you have authority to bind Company accordingly.
13 * Copyright (C) 2004-2013 SugarCRM Inc. All rights reserved.
14 ********************************************************************************/
19 * ACL - Unable to reassign record between the users within the same role
21 * @author mgusev@sugarcrm.com
24 class Bug60442Test extends Sugar_PHPUnit_Framework_TestCase
28 * Test asserts that fetched row has more priority then property
33 public function testIsOwner()
35 $bean = new SugarBean();
36 $bean->id = create_guid();
37 $bean->fetched_row['assigned_user_id'] = 1;
38 $bean->assigned_user_id = 2;
39 $this->assertTrue($bean->isOwner(1), 'Incorrect ownership');