]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/MySettings/StoreQueryTest.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / MySettings / StoreQueryTest.php
1 <?php 
2 require_once('modules/MySettings/StoreQuery.php');
3
4 class StoreQueryTest extends Sugar_PHPUnit_Framework_TestCase{
5         public function setUp(){
6         global $current_user;
7                 $current_user = SugarTestUserUtilities::createAnonymousUser();
8         }
9
10     public function tearDown(){
11         SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
12         unset($GLOBALS['current_user']);
13     }
14     
15         function testGetStoredQuery(){
16                 $query = StoreQuery::getStoredQueryForUser("Contacts");
17             $this->assertTrue(empty($query), "StoreQuery::getStoredQueryForUser is not empty.");
18     }
19 }
20 ?>