0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-21 20:56:08 +00:00
salesagility_SuiteCRM/tests/unit/phpunit/modules/AM_ProjectTemplates/AM_ProjectTemplatesTest.php
j.dang 22852537fc Replace explicit bean instantiations in files 131 - 140
- File: '... /tests/unit/phpunit/modules/Leads/LeadTest.php'

   - Replaced 1 occurrence(s) of 'new Lead()'

   - Replaced 1 occurrence(s) of 'new Contact()'

   - Replaced 1 occurrence(s) of 'new User()'

- File: '... /tests/unit/phpunit/modules/AOP_Case_Events/AOP_Case_EventsTest.php'

   - Replaced 1 occurrence(s) of 'new AOP_Case_Events()'

- File: '... /tests/unit/phpunit/modules/AOS_Products/AOS_ProductsTest.php'

   - Replaced 1 occurrence(s) of 'new User()'

   - Replaced 3 occurrence(s) of 'new AOS_Products()'

- File: '... /tests/unit/phpunit/modules/AOD_Index/AOD_IndexTest.php'

   - Replaced 10 occurrence(s) of 'new AOD_Index()'

- File: '... /tests/unit/phpunit/modules/Contacts/ContactTest.php'

   - Replaced 16 occurrence(s) of 'new Contact()'

   - Replaced 1 occurrence(s) of 'new User()'

- File: '... /tests/unit/phpunit/modules/SecurityGroups/SecurityGroupTest.php'

   - Replaced 6 occurrence(s) of 'new Account()'

   - Replaced 1 occurrence(s) of 'new User()'

   - Replaced 16 occurrence(s) of 'new SecurityGroup()'

- File: '... /tests/unit/phpunit/modules/AM_ProjectTemplates/AM_ProjectTemplatesTest.php'

   - Replaced 1 occurrence(s) of 'new AM_ProjectTemplates()'

- File: '... /tests/unit/phpunit/modules/jjwg_Areas/jjwg_AreasTest.php'

   - Replaced 15 occurrence(s) of 'new jjwg_Areas()'

- File: '... /tests/unit/phpunit/modules/AOR_Charts/AOR_ChartTest.php'

   - Replaced 1 occurrence(s) of 'new AOR_Report()'

   - Replaced 8 occurrence(s) of 'new AOR_Chart()'

- File: '... /tests/unit/phpunit/modules/Audit/AuditTest.php'

   - Replaced 2 occurrence(s) of 'new Account()'

   - Replaced 1 occurrence(s) of 'new User()'

   - Replaced 10 occurrence(s) of 'new Audit()'
2020-01-22 13:51:00 +00:00

22 lines
1.1 KiB
PHP

<?php
use SuiteCRM\Test\SuitePHPUnitFrameworkTestCase;
class AM_ProjectTemplatesTest extends SuitePHPUnitFrameworkTestCase
{
public function testAM_ProjectTemplates()
{
// Execute the constructor and check for the Object type and type attribute
$am_projectTemplate = BeanFactory::newBean('AM_ProjectTemplates');
$this->assertInstanceOf('AM_ProjectTemplates', $am_projectTemplate);
$this->assertInstanceOf('Basic', $am_projectTemplate);
$this->assertInstanceOf('SugarBean', $am_projectTemplate);
$this->assertAttributeEquals('AM_ProjectTemplates', 'module_dir', $am_projectTemplate);
$this->assertAttributeEquals('AM_ProjectTemplates', 'object_name', $am_projectTemplate);
$this->assertAttributeEquals('am_projecttemplates', 'table_name', $am_projectTemplate);
$this->assertAttributeEquals(true, 'new_schema', $am_projectTemplate);
$this->assertAttributeEquals(true, 'disable_row_level_security', $am_projectTemplate);
$this->assertAttributeEquals(true, 'importable', $am_projectTemplate);
}
}