Convert Leeds > Contacts Layout" * * @author Mikhail Yarotsky * @ticket 39729 */ class Bug39729Test extends Sugar_PHPUnit_Framework_TestCase { /** * @var $_view; */ private $_view; /** * @var $def; */ private $def; public function setUp() { global $dictionary; $this->_view = 'editview'; VardefManager::loadVardef('Contacts', 'Contact'); $this->def = $dictionary['Contact']['fields']['email1']; } public function tearDown() { unset($this->_view); unset($this->def); } /** * Relate to email1 should be true * @group 39729 */ public function testEmail1FieldOnTrue() { $this->assertTrue(AbstractMetaDataParser::validField ( $this->def, $this->_view )); } }