mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-02-21 20:56:08 +00:00

- File: '... /tests/unit/phpunit/modules/AOS_Quotes/AOS_QuotesTest.php' - Replaced 1 occurrence(s) of 'new User()' - Replaced 2 occurrence(s) of 'new AOS_Quotes()' - File: '... /tests/unit/phpunit/modules/AOW_Processed/AOW_ProcessedTest.php' - Replaced 1 occurrence(s) of 'new User()' - Replaced 2 occurrence(s) of 'new AOW_Processed()' - File: '... /tests/unit/phpunit/modules/Releases/ReleaseTest.php' - Replaced 7 occurrence(s) of 'new Release()' - File: '... /tests/unit/phpunit/modules/Administration/AdministrationTest.php' - Replaced 1 occurrence(s) of 'new User()' - Replaced 6 occurrence(s) of 'new Administration()' - File: '... /tests/unit/phpunit/modules/EmailText/EmailTextTest.php' - Replaced 1 occurrence(s) of 'new EmailText()' - File: '... /tests/unit/phpunit/modules/Prospects/ProspectTest.php' - Replaced 9 occurrence(s) of 'new Prospect()' - Replaced 1 occurrence(s) of 'new User()' - File: '... /tests/unit/phpunit/modules/InboundEmail/InboundEmailTest.php' - Replaced 1 occurrence(s) of 'new aCase()' - Replaced 1 occurrence(s) of 'new Note()' - Replaced 7 occurrence(s) of 'new Email()' - Replaced 3 occurrence(s) of 'new User()' - Replaced 154 occurrence(s) of 'new InboundEmail()' - File: '... /tests/unit/phpunit/modules/vCals/vCalTest.php' - Replaced 1 occurrence(s) of 'new Meeting()' - Replaced 1 occurrence(s) of 'new User()' - Replaced 10 occurrence(s) of 'new vCal()' - File: '... /tests/unit/phpunit/modules/AOS_Products_Quotes/AOS_Products_QuotesTest.php' - Replaced 1 occurrence(s) of 'new User()' - Replaced 4 occurrence(s) of 'new AOS_Products_Quotes()' - Replaced 3 occurrence(s) of 'new AOS_Quotes()' - File: '... /tests/unit/phpunit/modules/AOK_KnowledgeBase/AOK_KnowledgeBaseTest.php' - Replaced 1 occurrence(s) of 'new AOK_KnowledgeBase()'
39 lines
1.6 KiB
PHP
39 lines
1.6 KiB
PHP
<?php
|
|
|
|
use SuiteCRM\Test\SuitePHPUnitFrameworkTestCase;
|
|
|
|
class AOW_ProcessedTest extends SuitePHPUnitFrameworkTestCase
|
|
{
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
|
|
global $current_user;
|
|
get_sugar_config_defaults();
|
|
$current_user = BeanFactory::newBean('Users');
|
|
}
|
|
|
|
public function testAOW_Processed()
|
|
{
|
|
// Execute the constructor and check for the Object type and attributes
|
|
$aowProcessed = BeanFactory::newBean('AOW_Processed');
|
|
$this->assertInstanceOf('AOW_Processed', $aowProcessed);
|
|
$this->assertInstanceOf('Basic', $aowProcessed);
|
|
$this->assertInstanceOf('SugarBean', $aowProcessed);
|
|
|
|
$this->assertAttributeEquals('AOW_Processed', 'module_dir', $aowProcessed);
|
|
$this->assertAttributeEquals('AOW_Processed', 'object_name', $aowProcessed);
|
|
$this->assertAttributeEquals('aow_processed', 'table_name', $aowProcessed);
|
|
$this->assertAttributeEquals(true, 'new_schema', $aowProcessed);
|
|
$this->assertAttributeEquals(true, 'disable_row_level_security', $aowProcessed);
|
|
$this->assertAttributeEquals(false, 'importable', $aowProcessed);
|
|
}
|
|
|
|
public function testbean_implements()
|
|
{
|
|
$aowProcessed = BeanFactory::newBean('AOW_Processed');
|
|
$this->assertEquals(false, $aowProcessed->bean_implements('')); //test with blank value
|
|
$this->assertEquals(false, $aowProcessed->bean_implements('test')); //test with invalid value
|
|
$this->assertEquals(true, $aowProcessed->bean_implements('ACL')); //test with valid value
|
|
}
|
|
}
|