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 * Read-Only Roles on Addresses Cause Street to Blank on Edit
21 * @author ekolotaev@sugarcrm.com
24 class Bug62294Test extends Sugar_PHPUnit_Framework_TestCase
26 public function setUp()
28 SugarTestHelper::setUp('beanFiles');
29 SugarTestHelper::setUp('beanList');
30 SugarTestHelper::setUp('current_user');
33 public function tearDown()
35 SugarTestHelper::tearDown();
38 public function testAddAddressStreets()
40 $bean = BeanFactory::getBean('Accounts');
41 $bean->billing_address_street = null;
42 $bean->billing_address_street_2 = 'Street 2';
44 $bean->add_address_streets('billing_address_street');
45 $this->assertNull($bean->billing_address_street);