0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-22 04:58:38 +00:00
salesagility_SuiteCRM/tests/unit/phpunit/include/MVC/Controller/ControllerFactoryTest.php
Connor Shea 7cc3652073 Miscellaneous cleanup of unit tests.
Removing unnecessary white space, etc.
2019-11-20 12:15:06 -07:00

18 lines
635 B
PHP

<?php
use SuiteCRM\Test\SuitePHPUnitFrameworkTestCase;
class ControllerFactoryTest extends SuitePHPUnitFrameworkTestCase
{
public function testgetController()
{
//execute the method with invalid input
$controller = ControllerFactory::getController('');
$this->assertInstanceOf('SugarController', $controller);
//execute the method with valid input and check if it returns correct instance
$controller = ControllerFactory::getController('Users');
$this->assertInstanceOf('UsersController', $controller);
$this->assertInstanceOf('SugarController', $controller);
}
}