Completed
Push — CI ( ee6bd7...0f01dd )
by Adam
22:32
created
tests/tests/include/MVC/View/views/view.editTest.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,61 +1,61 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
- class ViewEditTest extends PHPUnit_Framework_TestCase
4
- {
3
+    class ViewEditTest extends PHPUnit_Framework_TestCase
4
+    {
5 5
 
6 6
 
7
- 	public function testViewEdit(){
7
+        public function testViewEdit(){
8 8
  
9
- 		//execute the contructor and check for the Object type and attributes
10
- 		$view = new ViewEdit();
11
- 		$this->assertInstanceOf('ViewEdit',$view);
12
- 		$this->assertInstanceOf('SugarView',$view);
13
- 		$this->assertAttributeEquals('edit','type', $view);
9
+            //execute the contructor and check for the Object type and attributes
10
+            $view = new ViewEdit();
11
+            $this->assertInstanceOf('ViewEdit',$view);
12
+            $this->assertInstanceOf('SugarView',$view);
13
+            $this->assertAttributeEquals('edit','type', $view);
14 14
  		
15
- 		$this->assertAttributeEquals(false,'useForSubpanel', $view);
16
- 		$this->assertAttributeEquals(false,'useModuleQuickCreateTemplate', $view);
17
- 		$this->assertAttributeEquals(true,'showTitle', $view);
15
+            $this->assertAttributeEquals(false,'useForSubpanel', $view);
16
+            $this->assertAttributeEquals(false,'useModuleQuickCreateTemplate', $view);
17
+            $this->assertAttributeEquals(true,'showTitle', $view);
18 18
  		
19
- 	}
19
+        }
20 20
 
21 21
 
22 22
     public function testpreDisplay()
23 23
     {
24
-    	error_reporting(E_ERROR | E_PARSE);
24
+        error_reporting(E_ERROR | E_PARSE);
25 25
     	
26
-    	//execute the method with required attributes preset, it will initialize the ev(edit view) attribute.
27
-    	$view = new ViewEdit();
28
-    	$view->module = "Users";
29
-    	$view->bean = new User();
30
-    	$view->preDisplay();
31
-    	$this->assertInstanceOf('EditView',$view->ev);
26
+        //execute the method with required attributes preset, it will initialize the ev(edit view) attribute.
27
+        $view = new ViewEdit();
28
+        $view->module = "Users";
29
+        $view->bean = new User();
30
+        $view->preDisplay();
31
+        $this->assertInstanceOf('EditView',$view->ev);
32 32
     	
33 33
     	
34
-    	//execute the method again for a different module with required attributes preset, it will initialize the ev(edit view) attribute.
35
-    	$view = new ViewEdit();
36
-    	$view->module = "Meetings";
37
-    	$view->bean = new Meeting();
38
-    	$view->preDisplay();
39
-    	$this->assertInstanceOf('EditView',$view->ev);
34
+        //execute the method again for a different module with required attributes preset, it will initialize the ev(edit view) attribute.
35
+        $view = new ViewEdit();
36
+        $view->module = "Meetings";
37
+        $view->bean = new Meeting();
38
+        $view->preDisplay();
39
+        $this->assertInstanceOf('EditView',$view->ev);
40 40
     	
41 41
     }
42 42
 
43
- 	public function testdisplay(){
43
+        public function testdisplay(){
44 44
 
45
- 		//execute the method with essential parameters set. it should return some html.
46
- 		$view = new ViewEdit();
47
- 		$view->module = "Users";
48
- 		$view->bean = new User();
49
- 		$view->preDisplay();
50
- 		$view->ev->ss = new Sugar_Smarty();
45
+            //execute the method with essential parameters set. it should return some html.
46
+            $view = new ViewEdit();
47
+            $view->module = "Users";
48
+            $view->bean = new User();
49
+            $view->preDisplay();
50
+            $view->ev->ss = new Sugar_Smarty();
51 51
  		
52
- 		ob_start();
53
- 		$view->display();
54
- 		$renderedContent = ob_get_contents();
55
- 		ob_end_clean();
56
- 		$this->assertGreaterThan(0,strlen($renderedContent));
52
+            ob_start();
53
+            $view->display();
54
+            $renderedContent = ob_get_contents();
55
+            ob_end_clean();
56
+            $this->assertGreaterThan(0,strlen($renderedContent));
57 57
  		
58
- 	}
58
+        }
59 59
   
60 60
 }
61 61
 
Please login to merge, or discard this patch.
tests/tests/include/MVC/View/views/view.serializedTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,20 +2,20 @@  discard block
 block discarded – undo
2 2
 
3 3
 class ViewSerializedTest extends PHPUnit_Framework_TestCase{
4 4
 	
5
-	public function testViewSerialized(){
5
+    public function testViewSerialized(){
6 6
 		
7
-		//execute the contructor and check for the Object type
8
-		$view = new ViewSerialized();
9
-		$this->assertInstanceOf('ViewSerialized',$view);
10
-		$this->assertInstanceOf('SugarView',$view);
7
+        //execute the contructor and check for the Object type
8
+        $view = new ViewSerialized();
9
+        $this->assertInstanceOf('ViewSerialized',$view);
10
+        $this->assertInstanceOf('SugarView',$view);
11 11
 		
12
- 	}
12
+        }
13 13
  	
14
- 	//Incomplete Test. method uses exit() so it cannot be tested.
15
-	public function testdisplay(){
14
+        //Incomplete Test. method uses exit() so it cannot be tested.
15
+    public function testdisplay(){
16 16
 		
17 17
 		
18
-		/* //this method call uses exit() so it cannot be tested as it forces the PHP unit to quite as well
18
+        /* //this method call uses exit() so it cannot be tested as it forces the PHP unit to quite as well
19 19
 		$view = new ViewSerialized();
20 20
 		$view->bean = new User();
21 21
 		
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 		$this->assertGreaterThan(0,strlen($renderedContent));
30 30
 		*/
31 31
 		
32
-		$this->markTestIncomplete('Can Not be implemented');
33
- 	}
32
+        $this->markTestIncomplete('Can Not be implemented');
33
+        }
34 34
 }
35 35
 ?>
Please login to merge, or discard this patch.
tests/tests/include/MVC/View/views/view.quickcreateTest.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -6,24 +6,24 @@  discard block
 block discarded – undo
6 6
     public function testpreDisplay() 
7 7
     {
8 8
  
9
-    	//check without setting any values, it should execute without any issues.
10
-    	$view = new ViewQuickcreate();
11
-    	$view->preDisplay();
12
-    	$this->assertEquals(0,count($_REQUEST));
9
+        //check without setting any values, it should execute without any issues.
10
+        $view = new ViewQuickcreate();
11
+        $view->preDisplay();
12
+        $this->assertEquals(0,count($_REQUEST));
13 13
     	 
14
-    	//check with values preset but without a valid bean id, it sould not change Request parameters
15
-    	$_REQUEST['source_module'] = "Users";
16
-    	$_REQUEST['module']= 'Users';
17
-    	$_REQUEST['record'] = '';
18
-    	$request = $_REQUEST;
14
+        //check with values preset but without a valid bean id, it sould not change Request parameters
15
+        $_REQUEST['source_module'] = "Users";
16
+        $_REQUEST['module']= 'Users';
17
+        $_REQUEST['record'] = '';
18
+        $request = $_REQUEST;
19 19
     	 
20
-    	$view->preDisplay();
21
-    	$this->assertSame($request,$_REQUEST);
20
+        $view->preDisplay();
21
+        $this->assertSame($request,$_REQUEST);
22 22
     	
23
-    	//check with values preset, it sould set some addiiotnal Request parameters
24
-    	$_REQUEST['record'] = 1;
25
-    	$view->preDisplay();
26
-    	$this->assertNotSame($request,$_REQUEST);
23
+        //check with values preset, it sould set some addiiotnal Request parameters
24
+        $_REQUEST['record'] = 1;
25
+        $view->preDisplay();
26
+        $this->assertNotSame($request,$_REQUEST);
27 27
     	
28 28
     	
29 29
     }    
@@ -31,26 +31,26 @@  discard block
 block discarded – undo
31 31
     public function testdisplay()
32 32
     {
33 33
  
34
-    	error_reporting(E_ERROR | E_PARSE);
34
+        error_reporting(E_ERROR | E_PARSE);
35 35
 
36
-    	//execute the method with required child objects and parameters preset. it will return some html.
37
-    	$view = new ViewQuickcreate();
36
+        //execute the method with required child objects and parameters preset. it will return some html.
37
+        $view = new ViewQuickcreate();
38 38
     	 
39
-    	$_REQUEST['module']= 'Accounts';
40
-    	$view->bean = new Account();
39
+        $_REQUEST['module']= 'Accounts';
40
+        $view->bean = new Account();
41 41
     	 
42
-    	ob_start();
42
+        ob_start();
43 43
     	 
44
-    	$view->display();
44
+        $view->display();
45 45
     	 
46
-    	$renderedContent = ob_get_contents();
47
-    	ob_end_clean();
46
+        $renderedContent = ob_get_contents();
47
+        ob_end_clean();
48 48
     	 
49
-    	$this->assertGreaterThan(0,strlen($renderedContent));
50
-    	$this->assertEquals(False,json_decode($renderedContent)); //check that it doesn't return json. 
49
+        $this->assertGreaterThan(0,strlen($renderedContent));
50
+        $this->assertEquals(False,json_decode($renderedContent)); //check that it doesn't return json. 
51 51
     	
52 52
     	
53
-	}
53
+    }
54 54
 
55 55
  
56 56
 }
57 57
\ No newline at end of file
Please login to merge, or discard this patch.
tests/tests/include/MVC/View/views/view.popupTest.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -3,41 +3,41 @@
 block discarded – undo
3 3
 class ViewPopupTest extends PHPUnit_Framework_TestCase
4 4
 {
5 5
 
6
-	public function testViewPopup(){
6
+    public function testViewPopup(){
7 7
 
8
-		//execute the contructor and check for the Object type and type attribute
9
-		$view = new ViewPopup();
10
-		$this->assertInstanceOf('ViewPopup',$view);
11
-		$this->assertInstanceOf('SugarView',$view);
12
-		$this->assertAttributeEquals('list','type', $view);
13
-		
14
-		unset($view);
15
-	}
8
+        //execute the contructor and check for the Object type and type attribute
9
+        $view = new ViewPopup();
10
+        $this->assertInstanceOf('ViewPopup',$view);
11
+        $this->assertInstanceOf('SugarView',$view);
12
+        $this->assertAttributeEquals('list','type', $view);
13
+		
14
+        unset($view);
15
+    }
16 16
 
17
-	public function testdisplay(){
17
+    public function testdisplay(){
18 18
 		
19
-		//error_reporting(E_ERROR | E_PARSE |E_ALL);
19
+        //error_reporting(E_ERROR | E_PARSE |E_ALL);
20 20
 		
21
-		//execute the method with required child objects preset. it should return some html. 
22
-		$view = new ViewPopup();
23
-		$view->module = "Accounts";
21
+        //execute the method with required child objects preset. it should return some html. 
22
+        $view = new ViewPopup();
23
+        $view->module = "Accounts";
24 24
 		
25
-		try{
26
-			$view->bean = new Account();
27
-		}
28
-		Catch(Exception $e){
29
-			$this->assertStringStartsWith('mysqli_query()',$e->getMessage());
30
-		}
25
+        try{
26
+            $view->bean = new Account();
27
+        }
28
+        Catch(Exception $e){
29
+            $this->assertStringStartsWith('mysqli_query()',$e->getMessage());
30
+        }
31 31
 	
32
-		ob_start();
32
+        ob_start();
33 33
 		
34
-		$view->display();
34
+        $view->display();
35 35
 		
36
-		$renderedContent = ob_get_contents();
37
-		ob_end_clean();
36
+        $renderedContent = ob_get_contents();
37
+        ob_end_clean();
38 38
 		
39
-		$this->assertGreaterThan(0,strlen($renderedContent));
39
+        $this->assertGreaterThan(0,strlen($renderedContent));
40 40
 		
41
-	}
41
+    }
42 42
 }
43 43
 
Please login to merge, or discard this patch.
tests/tests/include/MVC/View/views/view.jsonTest.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -2,24 +2,24 @@  discard block
 block discarded – undo
2 2
 
3 3
 class ViewJsonTest extends PHPUnit_Framework_TestCase
4 4
 {
5
-	function testViewJson(){
5
+    function testViewJson(){
6 6
 
7
-		//execute the contructor and check for the Object type and type attribute
8
-		$view = new ViewJson();
9
-		$this->assertInstanceOf('ViewJson',$view);
10
-		$this->assertInstanceOf('SugarView',$view);
11
-		$this->assertAttributeEquals('detail','type', $view);		
12
- 	}
7
+        //execute the contructor and check for the Object type and type attribute
8
+        $view = new ViewJson();
9
+        $this->assertInstanceOf('ViewJson',$view);
10
+        $this->assertInstanceOf('SugarView',$view);
11
+        $this->assertAttributeEquals('detail','type', $view);		
12
+        }
13 13
 
14
- 	//incomplete test. this method uses exit() so it cannot be tested.
15
-	function testdisplay(){
14
+        //incomplete test. this method uses exit() so it cannot be tested.
15
+    function testdisplay(){
16 16
 
17
-		/*
17
+        /*
18 18
 		setup required paramerers and execute the method. 
19 19
 		it uses die/exit which stops the execution of PHP unit as well so this method cannot be tested.
20 20
 		*/
21 21
 		
22
-		/*
22
+        /*
23 23
 		$view = new ViewJson();
24 24
 		$GLOBALS['module'] = "Users" ;
25 25
 		$view->bean = new User();
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 		$this->assertGreaterThan(0,strlen($renderedContent));
32 32
 		$this->assertNotEquals(False,json_decode($renderedContent));
33 33
 		*/
34
-		$this->markTestIncomplete('Can Not be implemented');
35
-	}
34
+        $this->markTestIncomplete('Can Not be implemented');
35
+    }
36 36
 
37 37
 }
38 38
 ?>
Please login to merge, or discard this patch.
tests/tests/include/MVC/View/views/view.htmlTest.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -3,28 +3,28 @@
 block discarded – undo
3 3
 class ViewHtmlTest extends PHPUnit_Framework_TestCase
4 4
 {
5 5
 
6
-	public function testViewHtml(){
6
+    public function testViewHtml(){
7 7
 		
8
-		//execute the contructor and check for the Object type
9
-		$view = new ViewHtml();
10
-		$this->assertInstanceOf('ViewHtml',$view);
11
-		$this->assertInstanceOf('SugarView',$view);
8
+        //execute the contructor and check for the Object type
9
+        $view = new ViewHtml();
10
+        $this->assertInstanceOf('ViewHtml',$view);
11
+        $this->assertInstanceOf('SugarView',$view);
12 12
 
13 13
 		
14
- 	}
14
+        }
15 15
  	
16
- 	public function testdisplay(){
16
+        public function testdisplay(){
17 17
  		
18
- 		$view = new ViewHtml();
18
+            $view = new ViewHtml();
19 19
  		 
20
- 		//execute the method and test if it works and does not throws an exception.
21
- 		try {
22
- 			$view->display();
20
+            //execute the method and test if it works and does not throws an exception.
21
+            try {
22
+                $view->display();
23 23
  			 
24
- 		} catch (Exception $e) {
25
- 			$this->fail();
26
- 		}
27
- 	}
24
+            } catch (Exception $e) {
25
+                $this->fail();
26
+            }
27
+        }
28 28
  	
29 29
 }
30 30
 ?>
Please login to merge, or discard this patch.
tests/tests/include/MVC/View/views/view.sugarpdfTest.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -4,43 +4,43 @@
 block discarded – undo
4 4
 class ViewSugarpdfTest extends PHPUnit_Framework_TestCase{
5 5
     
6 6
     
7
-     function testViewSugarpdf(){
8
-     	error_reporting(E_ERROR | E_WARNING | E_PARSE);
7
+        function testViewSugarpdf(){
8
+            error_reporting(E_ERROR | E_WARNING | E_PARSE);
9 9
      	      	
10
-     	//execute the method without request parameters and test if it works. it should output some headers and throw headers output exception.
11
-     	try {
12
-     		$view = new ViewSugarpdf();
10
+            //execute the method without request parameters and test if it works. it should output some headers and throw headers output exception.
11
+            try {
12
+                $view = new ViewSugarpdf();
13 13
      		 
14
-     	} catch (Exception $e) {
15
-     		$this->assertStringStartsWith('Cannot modify header information',$e->getMessage());
14
+            } catch (Exception $e) {
15
+                $this->assertStringStartsWith('Cannot modify header information',$e->getMessage());
16 16
      		
17
-     	}
18
-     	$this->assertEquals(Null,$view);
17
+            }
18
+            $this->assertEquals(Null,$view);
19 19
      	
20 20
      	
21 21
      	
22
-     	//execute the method with request parameters and test if it works.
23
-     	$_REQUEST["sugarpdf"] = 'someValue'; 
24
-     	$view = new ViewSugarpdf();
25
-     	$view->module = "Users";
26
-     	$this->assertInstanceOf('ViewSugarpdf',$view);
27
-     	$this->assertInstanceOf('SugarView',$view);
28
-     	$this->assertAttributeEquals('sugarpdf','type', $view);
29
-     	$this->assertAttributeEquals('someValue','sugarpdf', $view);
30
-     	$this->assertAttributeEquals(NULL,'sugarpdfBean', $view);
22
+            //execute the method with request parameters and test if it works.
23
+            $_REQUEST["sugarpdf"] = 'someValue'; 
24
+            $view = new ViewSugarpdf();
25
+            $view->module = "Users";
26
+            $this->assertInstanceOf('ViewSugarpdf',$view);
27
+            $this->assertInstanceOf('SugarView',$view);
28
+            $this->assertAttributeEquals('sugarpdf','type', $view);
29
+            $this->assertAttributeEquals('someValue','sugarpdf', $view);
30
+            $this->assertAttributeEquals(NULL,'sugarpdfBean', $view);
31 31
      	
32
-     }
32
+        }
33 33
 
34 34
    
35 35
     //Incomplete test. SugarpdfFactory::loadSugarpdf throws fatal error. error needs to be resolved before testing.     
36 36
     function testpreDisplay(){
37
-    	$this->markTestIncomplete('Can Not be implemented');
38
-     }
37
+        $this->markTestIncomplete('Can Not be implemented');
38
+        }
39 39
      
40 40
     //Incomplete test.  SugarpdfFactory::loadSugarpdf throws fatal error. error needs to be resolved before testing.
41 41
     function testdisplay(){
42
-    	$this->markTestIncomplete('Can Not be implemented');
43
-     }
42
+        $this->markTestIncomplete('Can Not be implemented');
43
+        }
44 44
 
45 45
 }
46 46
 ?>
Please login to merge, or discard this patch.
tests/tests/include/MVC/View/views/view.importvcardTest.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -5,28 +5,28 @@
 block discarded – undo
5 5
 
6 6
     public function test__construct()
7 7
     {
8
-    	//execute the contructor and check for the Object type and type attribute
9
-    	$view = new ViewImportvcard();
10
-    	$this->assertInstanceOf('ViewImportvcard',$view);
11
-    	$this->assertInstanceOf('SugarView',$view);
12
-    	$this->assertAttributeEquals('edit','type', $view);  	 
13
- 	}
8
+        //execute the contructor and check for the Object type and type attribute
9
+        $view = new ViewImportvcard();
10
+        $this->assertInstanceOf('ViewImportvcard',$view);
11
+        $this->assertInstanceOf('SugarView',$view);
12
+        $this->assertAttributeEquals('edit','type', $view);  	 
13
+        }
14 14
  	
15 15
 
16
-	public function testdisplay()
16
+    public function testdisplay()
17 17
     {
18 18
     	
19
-    	//execute the method with essential parameters set. it should return some html.
20
-    	$view = new ViewImportvcard();
21
-    	$_REQUEST['module'] = "Users";
22
-    	$view->ss = new Sugar_Smarty();
19
+        //execute the method with essential parameters set. it should return some html.
20
+        $view = new ViewImportvcard();
21
+        $_REQUEST['module'] = "Users";
22
+        $view->ss = new Sugar_Smarty();
23 23
     	
24
-    	ob_start();
25
-    	$view->display();
26
-    	$renderedContent = ob_get_contents();
27
-    	ob_end_clean();
28
-    	$this->assertGreaterThan(0,strlen($renderedContent));
24
+        ob_start();
25
+        $view->display();
26
+        $renderedContent = ob_get_contents();
27
+        ob_end_clean();
28
+        $this->assertGreaterThan(0,strlen($renderedContent));
29 29
     	
30
- 	}
30
+        }
31 31
 }
32 32
 ?>
Please login to merge, or discard this patch.
tests/tests/include/MVC/SugarModuleTest.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -3,62 +3,62 @@
 block discarded – undo
3 3
 class SugarModuleTest extends PHPUnit_Framework_TestCase
4 4
 {
5 5
 
6
-	public function testconstructor()
7
-	{
8
-		//test for invalid input
9
-		$sugarmodule = new SugarModule('');
10
-		$this->assertAttributeEquals(null,'_moduleName', $sugarmodule);
6
+    public function testconstructor()
7
+    {
8
+        //test for invalid input
9
+        $sugarmodule = new SugarModule('');
10
+        $this->assertAttributeEquals(null,'_moduleName', $sugarmodule);
11 11
 	
12
-		//test for valid input
13
-		$sugarmodule_user = SugarModule::get('User');
14
-		$this->assertAttributeEquals('User','_moduleName', $sugarmodule_user);
15
-	}
12
+        //test for valid input
13
+        $sugarmodule_user = SugarModule::get('User');
14
+        $this->assertAttributeEquals('User','_moduleName', $sugarmodule_user);
15
+    }
16 16
 	
17 17
     public function testget()
18 18
     {
19
-    	//test for invalid input
20
-    	$sugarmodule = SugarModule::get('');
21
-    	$this->assertInstanceOf('SugarModule',$sugarmodule);
22
-    	$this->assertAttributeEquals(null,'_moduleName', $sugarmodule);
19
+        //test for invalid input
20
+        $sugarmodule = SugarModule::get('');
21
+        $this->assertInstanceOf('SugarModule',$sugarmodule);
22
+        $this->assertAttributeEquals(null,'_moduleName', $sugarmodule);
23 23
     	
24
-    	//test for valid input
25
-    	$sugarmodule_user = SugarModule::get('User');
26
-    	$this->assertInstanceOf('SugarModule',$sugarmodule_user);
27
-    	$this->assertAttributeEquals('User','_moduleName', $sugarmodule_user);
24
+        //test for valid input
25
+        $sugarmodule_user = SugarModule::get('User');
26
+        $this->assertInstanceOf('SugarModule',$sugarmodule_user);
27
+        $this->assertAttributeEquals('User','_moduleName', $sugarmodule_user);
28 28
     	    	
29 29
     }
30 30
 
31
-     public function testmoduleImplements()
31
+        public function testmoduleImplements()
32 32
     {
33
-    	//test for invalid input
34
-    	$sugarmodule = new SugarModule('');
35
-    	$result = $sugarmodule->moduleImplements('Basic');
36
-    	$this->assertEquals( false, $result);
33
+        //test for invalid input
34
+        $sugarmodule = new SugarModule('');
35
+        $result = $sugarmodule->moduleImplements('Basic');
36
+        $this->assertEquals( false, $result);
37 37
     	
38
-    	//test for invalid input
39
-    	$sugarmodule_user = new SugarModule('Users');
40
-    	$result = $sugarmodule_user->moduleImplements('SugarModule');
41
-    	$this->assertFalse( $result);    	
38
+        //test for invalid input
39
+        $sugarmodule_user = new SugarModule('Users');
40
+        $result = $sugarmodule_user->moduleImplements('SugarModule');
41
+        $this->assertFalse( $result);    	
42 42
 
43
-    	//test for valid input
44
-    	$sugarmodule_user = new SugarModule('Users');
45
-    	$result = $sugarmodule_user->moduleImplements('Basic');
46
-    	$this->assertEquals( true, $result);    	
43
+        //test for valid input
44
+        $sugarmodule_user = new SugarModule('Users');
45
+        $result = $sugarmodule_user->moduleImplements('Basic');
46
+        $this->assertEquals( true, $result);    	
47 47
     	
48 48
     }
49 49
 
50 50
     
51 51
     public function testloadBean()
52 52
     {
53
-    	//test for invalid input
54
-    	$sugarmodule = new SugarModule('');
55
-    	$result = $sugarmodule->loadBean();
56
-    	$this->assertFalse( $result);
53
+        //test for invalid input
54
+        $sugarmodule = new SugarModule('');
55
+        $result = $sugarmodule->loadBean();
56
+        $this->assertFalse( $result);
57 57
     	
58
-    	//test for valid input
59
-    	$sugarmodule_user = new SugarModule('Users');
60
-    	$result = $sugarmodule_user->loadBean();
61
-    	$this->assertInstanceOf('User',$result);
58
+        //test for valid input
59
+        $sugarmodule_user = new SugarModule('Users');
60
+        $result = $sugarmodule_user->loadBean();
61
+        $this->assertInstanceOf('User',$result);
62 62
     	    	  	
63 63
     }
64 64
 }
Please login to merge, or discard this patch.