mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-02-22 13:08:39 +00:00

- 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()'
24 lines
624 B
PHP
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));
|
|
}
|
|
}
|