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/AOK_KnowledgeBase/AOK_KnowledgeBaseTest.php
j.dang 52362db08b Replace explicit bean instantiations in files 121 - 130
- 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()'
2020-01-22 13:50:59 +00:00

22 lines
1 KiB
PHP

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