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/FP_events/FP_eventsTest.php
j.dang b5fb31441f Replace explicit bean instantiations in files 111 - 120
- File: '... /tests/unit/phpunit/modules/MergeRecords/MergeRecordTest.php'

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

   - Replaced 18 occurrence(s) of 'new MergeRecord()'

- File: '... /tests/unit/phpunit/modules/ProspectLists/ProspectListTest.php'

   - Replaced 17 occurrence(s) of 'new ProspectList()'

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

- File: '... /tests/unit/phpunit/modules/Notes/NoteTest.php'

   - Replaced 11 occurrence(s) of 'new Note()'

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

- File: '... /tests/unit/phpunit/modules/FP_events/FP_eventsTest.php'

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

- File: '... /tests/unit/phpunit/modules/Users/UserTest.php'

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

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

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

- File: '... /tests/unit/phpunit/modules/FP_Event_Locations/FP_Event_LocationsTest.php'

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

- File: '... /tests/unit/phpunit/modules/AM_TaskTemplates/AM_TaskTemplatesTest.php'

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

- File: '... /tests/unit/phpunit/modules/SavedSearch/SavedSearchTest.php'

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

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

   - Replaced 9 occurrence(s) of 'new SavedSearch()'

- File: '... /tests/unit/phpunit/modules/Meetings/MeetingTest.php'

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

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

   - Replaced 18 occurrence(s) of 'new Meeting()'

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

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

- File: '... /tests/unit/phpunit/modules/AOS_PDF_Templates/AOS_PDF_TemplatesTest.php'

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

   - Replaced 1 occurrence(s) of 'new AOS_PDF_Templates()'
2020-01-22 13:50:58 +00:00

30 lines
1.1 KiB
PHP

<?php
class FP_eventsTest extends SuiteCRM\Test\SuitePHPUnitFrameworkTestCase
{
public function testFP_events()
{
// Execute the constructor and check for the Object type and attributes
$fpEvents = BeanFactory::newBean('FP_events');
$this->assertInstanceOf('FP_events', $fpEvents);
$this->assertInstanceOf('Basic', $fpEvents);
$this->assertInstanceOf('SugarBean', $fpEvents);
$this->assertAttributeEquals('FP_events', 'module_dir', $fpEvents);
$this->assertAttributeEquals('FP_events', 'object_name', $fpEvents);
$this->assertAttributeEquals('fp_events', 'table_name', $fpEvents);
$this->assertAttributeEquals(true, 'new_schema', $fpEvents);
$this->assertAttributeEquals(true, 'importable', $fpEvents);
$this->assertAttributeEquals(true, 'disable_row_level_security', $fpEvents);
}
public function testemail_templates()
{
global $app_list_strings;
$fpEvents = BeanFactory::newBean('FP_events');
$fpEvents->email_templates();
$this->assertInternalType('array', $app_list_strings['emailTemplates_type_list']);
}
}