0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-22 13:08:39 +00:00
salesagility_SuiteCRM/tests/unit/phpunit/include/MVC/View/views/view.ajaxTest.php
j.dang 47c18d731c Replace explicit bean instantiations in files 81 - 90
- File: '... /tests/unit/phpunit/include/MVC/View/views/view.quickTest.php'

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

- File: '... /tests/unit/phpunit/include/MVC/View/views/view.sugarpdfTest.php'

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

- File: '... /tests/unit/phpunit/include/MVC/View/views/view.ajaxTest.php'

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

- File: '... /tests/unit/phpunit/include/MVC/View/views/view.quickcreateTest.php'

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

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

- File: '... /tests/unit/phpunit/include/MVC/View/views/view.multieditTest.php'

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

- File: '... /tests/unit/phpunit/include/MVC/View/views/view.popupTest.php'

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

- File: '... /tests/unit/phpunit/include/MVC/View/views/view.vcardTest.php'

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

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

- File: '... /tests/unit/phpunit/include/MVC/View/views/view.serializedTest.php'

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

- File: '... /tests/unit/phpunit/include/MVC/View/views/view.classicTest.php'

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

- File: '... /tests/unit/phpunit/include/MVC/View/views/view.jsonTest.php'

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

24 lines
624 B
PHP

<?php
use SuiteCRM\Test\SuitePHPUnitFrameworkTestCase;
class ViewAjaxTest extends SuitePHPUnitFrameworkTestCase
{
public function setUp()
{
parent::setUp();
global $current_user;
get_sugar_config_defaults();
$current_user = BeanFactory::newBean('Users');
}
public function testViewAjax()
{
// Execute the constructor and check for the Object type and attributes
$view = new ViewAjax();
$this->assertInstanceOf('ViewAjax', $view);
$this->assertInstanceOf('SugarView', $view);
$this->assertTrue(is_array($view->options));
}
}