Completed
Push — CI ( ee6bd7...0f01dd )
by Adam
22:32
created
tests/tests/modules/AOS_Quotes/AOS_QuotesTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@  discard block
 block discarded – undo
2 2
 
3 3
 class AOS_QuotesTest extends PHPUnit_Framework_TestCase {
4 4
 	
5
-	function testAOS_Quotes(){	
5
+	function testAOS_Quotes() {	
6 6
 
7 7
 		//execute the contructor and check for the Object type and  attributes
8 8
 		$aosQuotes = new AOS_Quotes();
9
-		$this->assertInstanceOf('AOS_Quotes',$aosQuotes);
10
-		$this->assertInstanceOf('Basic',$aosQuotes);
11
-		$this->assertInstanceOf('SugarBean',$aosQuotes);
9
+		$this->assertInstanceOf('AOS_Quotes', $aosQuotes);
10
+		$this->assertInstanceOf('Basic', $aosQuotes);
11
+		$this->assertInstanceOf('SugarBean', $aosQuotes);
12 12
 			
13 13
 		$this->assertAttributeEquals('AOS_Quotes', 'module_dir', $aosQuotes);
14 14
 		$this->assertAttributeEquals('AOS_Quotes', 'object_name', $aosQuotes);
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 		
21 21
 	}
22 22
 	
23
-	function testSaveAndMark_deleted(){
23
+	function testSaveAndMark_deleted() {
24 24
 
25 25
 		error_reporting(E_ERROR | E_PARSE);
26 26
 		
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		
29 29
 		$aosQuotes->name = "test";
30 30
 		$aosQuotes->total_amt = 100;
31
-		$aosQuotes->total_amt_usdollar= 100;
31
+		$aosQuotes->total_amt_usdollar = 100;
32 32
 		
33 33
 		$aosQuotes->save();
34 34
 			
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 		//mark the record as deleted and verify that this record cannot be retrieved anymore.
42 42
 		$aosQuotes->mark_deleted($aosQuotes->id);
43 43
 		$result = $aosQuotes->retrieve($aosQuotes->id);
44
-		$this->assertEquals(null,$result);
44
+		$this->assertEquals(null, $result);
45 45
 		
46 46
 	
47 47
 	}
Please login to merge, or discard this patch.
tests/tests/modules/AOR_Fields/AOR_FieldTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@  discard block
 block discarded – undo
3 3
 
4 4
 class AOR_FieldTest extends PHPUnit_Framework_TestCase {
5 5
 		
6
-	public function testAOR_Field(){
6
+	public function testAOR_Field() {
7 7
 
8 8
 		//execute the contructor and check for the Object type and  attributes
9 9
 		$aor_Field = new AOR_Field();
10
-		$this->assertInstanceOf('AOR_Field',$aor_Field);
11
-		$this->assertInstanceOf('Basic',$aor_Field);
12
-		$this->assertInstanceOf('SugarBean',$aor_Field);
10
+		$this->assertInstanceOf('AOR_Field', $aor_Field);
11
+		$this->assertInstanceOf('Basic', $aor_Field);
12
+		$this->assertInstanceOf('SugarBean', $aor_Field);
13 13
 			
14 14
 		$this->assertAttributeEquals('AOR_Fields', 'module_dir', $aor_Field);
15 15
 		$this->assertAttributeEquals('AOR_Field', 'object_name', $aor_Field);
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 		
22 22
 	}
23 23
 
24
-    public function testsave_lines(){
24
+    public function testsave_lines() {
25 25
 
26 26
     	error_reporting(E_ERROR | E_PARSE);
27 27
     	 
Please login to merge, or discard this patch.
tests/tests/modules/EmailMarketing/EmailMarketingTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 		//execute the contructor and check for the Object type and  attributes
12 12
 		$emailMarketing = new EmailMarketing();
13 13
 		
14
-		$this->assertInstanceOf('EmailMarketing',$emailMarketing);
15
-		$this->assertInstanceOf('SugarBean',$emailMarketing);
14
+		$this->assertInstanceOf('EmailMarketing', $emailMarketing);
15
+		$this->assertInstanceOf('SugarBean', $emailMarketing);
16 16
 			
17 17
 		$this->assertAttributeEquals('EmailMarketing', 'module_dir', $emailMarketing);
18 18
 		$this->assertAttributeEquals('EmailMarketing', 'object_name', $emailMarketing);
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 		$emailMarketing = new EmailMarketing();
30 30
 		
31 31
 		$result = $emailMarketing->retrieve();
32
-		$this->assertInstanceOf('EmailMarketing',$result);
32
+		$this->assertInstanceOf('EmailMarketing', $result);
33 33
 		
34 34
 	}
35 35
 
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 		$emailMarketing = new EmailMarketing();
39 39
 		
40 40
 		//test without setting name
41
-		$this->assertEquals(Null,$emailMarketing->get_summary_text());
41
+		$this->assertEquals(Null, $emailMarketing->get_summary_text());
42 42
 		
43 43
 		//test with name set
44 44
 		$emailMarketing->name = "test";
45
-		$this->assertEquals('test',$emailMarketing->get_summary_text());
45
+		$this->assertEquals('test', $emailMarketing->get_summary_text());
46 46
 		
47 47
 	}
48 48
 
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
 		
53 53
 		//test with empty string params
54 54
 		$expected = " SELECT  email_marketing.*  , jt0.name template_name , jt0.assigned_user_id template_name_owner  , 'EmailTemplates' template_name_mod FROM email_marketing   LEFT JOIN  email_templates jt0 ON email_marketing.template_id=jt0.id AND jt0.deleted=0\n\n AND jt0.deleted=0 where email_marketing.deleted=0"; 		
55
-		$actual = $emailMarketing->create_export_query('','');
56
-		$this->assertSame($expected,$actual);
55
+		$actual = $emailMarketing->create_export_query('', '');
56
+		$this->assertSame($expected, $actual);
57 57
 
58 58
 		 
59 59
 		//test with valid string params
60 60
 		$expected = " SELECT  email_marketing.*  , jt0.name template_name , jt0.assigned_user_id template_name_owner  , 'EmailTemplates' template_name_mod FROM email_marketing   LEFT JOIN  email_templates jt0 ON email_marketing.template_id=jt0.id AND jt0.deleted=0\n\n AND jt0.deleted=0 where (email_marketing.name=\"\") AND email_marketing.deleted=0";
61
-		$actual = $emailMarketing->create_export_query('email_marketing.id','email_marketing.name=""');
62
-		$this->assertSame($expected,$actual);
61
+		$actual = $emailMarketing->create_export_query('email_marketing.id', 'email_marketing.name=""');
62
+		$this->assertSame($expected, $actual);
63 63
 	
64 64
 	}
65 65
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 		$emailMarketing = new EmailMarketing();
70 70
 		
71 71
 		//execute the method and verify that it retunrs expected results
72
-		$expected = array (
72
+		$expected = array(
73 73
 				'ALL_PROSPECT_LISTS' => '0',
74 74
 		);
75 75
 		
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 		//execute the method and verify that it retunrs expected results
95 95
 		$expected = "select prospect_lists.* from prospect_lists  left join prospect_list_campaigns on prospect_list_campaigns.prospect_list_id=prospect_lists.id where prospect_list_campaigns.deleted=0 and prospect_list_campaigns.campaign_id='' and prospect_lists.deleted=0 and prospect_lists.list_type not like 'exempt%'";
96 96
 		$actual = $emailMarketing->get_all_prospect_lists();
97
-		$this->assertSame($expected,$actual);
97
+		$this->assertSame($expected, $actual);
98 98
 		
99 99
 	}
100 100
 
Please login to merge, or discard this patch.
tests/tests/modules/SchedulersJobs/SchedulersJobTest.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
 		//execute the contructor and check for the Object type and  attributes
10 10
 		$schedulersJob = new SchedulersJob();
11 11
 		
12
-		$this->assertInstanceOf('SchedulersJob',$schedulersJob);
13
-		$this->assertInstanceOf('Basic',$schedulersJob);
14
-		$this->assertInstanceOf('SugarBean',$schedulersJob);
12
+		$this->assertInstanceOf('SchedulersJob', $schedulersJob);
13
+		$this->assertInstanceOf('Basic', $schedulersJob);
14
+		$this->assertInstanceOf('SugarBean', $schedulersJob);
15 15
 			
16 16
 		$this->assertAttributeEquals('job_queue', 'table_name', $schedulersJob);
17 17
 		$this->assertAttributeEquals('SchedulersJobs', 'module_dir', $schedulersJob);
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 		
35 35
 		$schedulersJob->check_date_relationships_load();
36 36
 		
37
-		$this->assertEquals("2015-01-01 00:00:00",$schedulersJob->execute_time_db);
37
+		$this->assertEquals("2015-01-01 00:00:00", $schedulersJob->execute_time_db);
38 38
 			
39 39
 	}
40 40
 
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
 		
45 45
 		//test with default params
46 46
 		$result = $schedulersJob->handleDateFormat();
47
-		$this->assertGreaterThan(0,strlen($result));
47
+		$this->assertGreaterThan(0, strlen($result));
48 48
 		
49 49
 		//test with a valid date param
50 50
 		$result = $schedulersJob->handleDateFormat('2015-01-01');
51
-		$this->assertEquals("2015-01-01 00:00:00",$result);
51
+		$this->assertEquals("2015-01-01 00:00:00", $result);
52 52
 		
53 53
 	}
54 54
 
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
 		
60 60
 		//test with invalid param
61 61
 		$result = $schedulersJob->fireUrl("");
62
-		$this->assertEquals(false,$result);		
62
+		$this->assertEquals(false, $result);		
63 63
 		
64 64
 		//test with valid param
65 65
 		$result = $schedulersJob->fireUrl("https://suitecrm.com/");
66
-		$this->assertEquals(true,$result);
66
+		$this->assertEquals(true, $result);
67 67
 		
68 68
 	}
69 69
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		);
85 85
 		$actual = $schedulersJob->get_list_view_data();
86 86
 
87
-		$this->assertSame($expected,$actual);
87
+		$this->assertSame($expected, $actual);
88 88
 			
89 89
 	}
90 90
 
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
 		$this->assertTrue(isset($schedulersJob->id));
117 117
 		$this->assertEquals(36, strlen($schedulersJob->id));
118 118
 		
119
-		$this->assertEquals(SchedulersJob::JOB_STATUS_DONE,$schedulersJob->status);
120
-		$this->assertEquals(SchedulersJob::JOB_FAILURE,$schedulersJob->resolution);
119
+		$this->assertEquals(SchedulersJob::JOB_STATUS_DONE, $schedulersJob->status);
120
+		$this->assertEquals(SchedulersJob::JOB_FAILURE, $schedulersJob->resolution);
121 121
 				
122 122
 		$schedulersJob->mark_deleted($schedulersJob->id);
123 123
 	
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
 		$this->assertTrue(isset($schedulersJob->id));
136 136
 		$this->assertEquals(36, strlen($schedulersJob->id));
137 137
 		
138
-		$this->assertEquals(SchedulersJob::JOB_STATUS_DONE,$schedulersJob->status);
139
-		$this->assertEquals(SchedulersJob::JOB_SUCCESS,$schedulersJob->resolution);
138
+		$this->assertEquals(SchedulersJob::JOB_STATUS_DONE, $schedulersJob->status);
139
+		$this->assertEquals(SchedulersJob::JOB_SUCCESS, $schedulersJob->resolution);
140 140
 		
141 141
 		$schedulersJob->mark_deleted($schedulersJob->id);
142 142
 		
@@ -219,15 +219,15 @@  discard block
 block discarded – undo
219 219
 		$this->assertEquals(36, strlen($schedulersJob->id));
220 220
 		
221 221
 		//verify the related attributes
222
-		$this->assertEquals(SchedulersJob::JOB_STATUS_QUEUED,$schedulersJob->status);
223
-		$this->assertEquals(SchedulersJob::JOB_PARTIAL,$schedulersJob->resolution);
222
+		$this->assertEquals(SchedulersJob::JOB_STATUS_QUEUED, $schedulersJob->status);
223
+		$this->assertEquals(SchedulersJob::JOB_PARTIAL, $schedulersJob->resolution);
224 224
 		
225 225
 		
226 226
 		
227 227
 		//test mark deleted method and verify record doesn't exist after deletion
228 228
 		$schedulersJob->mark_deleted($schedulersJob->id);
229 229
 		$result = $schedulersJob->retrieve($schedulersJob->id);
230
-		$this->assertEquals(null,$result);
230
+		$this->assertEquals(null, $result);
231 231
 		
232 232
 	}
233 233
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 		$schedulersJob->client = "test";
240 240
 		$schedulersJob->status = SchedulersJob::JOB_STATUS_RUNNING;
241 241
 		$schedulersJob->save();
242
-		$result = SchedulersJob::runJobId($schedulersJob->id,"test");
242
+		$result = SchedulersJob::runJobId($schedulersJob->id, "test");
243 243
 	
244 244
 	
245 245
 		//execute the method
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 		$schedulersJob->save();
268 268
 		
269 269
 		$result = SchedulersJob::runJobId($schedulersJob->id);
270
-		$this->assertEquals("Job " . $schedulersJob->id . " is not marked as running.", $result);
270
+		$this->assertEquals("Job ".$schedulersJob->id." is not marked as running.", $result);
271 271
 		
272 272
 		
273 273
 		//test with valid job id and status but mismatch client
@@ -275,9 +275,9 @@  discard block
 block discarded – undo
275 275
 		$schedulersJob->status = SchedulersJob::JOB_STATUS_RUNNING;
276 276
 		$schedulersJob->save();
277 277
 		
278
-		$result = SchedulersJob::runJobId($schedulersJob->id,"test_client");
278
+		$result = SchedulersJob::runJobId($schedulersJob->id, "test_client");
279 279
 		
280
-		$this->assertEquals("Job " . $schedulersJob->id . " belongs to another client, can not run as test_client.", $result);
280
+		$this->assertEquals("Job ".$schedulersJob->id." belongs to another client, can not run as test_client.", $result);
281 281
 
282 282
 		$schedulersJob->mark_deleted($schedulersJob->id);
283 283
 	
@@ -292,21 +292,21 @@  discard block
 block discarded – undo
292 292
 		 
293 293
 		$schedulersJob->errors = "";
294 294
 		$schedulersJob->errorHandler(E_USER_WARNING, "test err", 'testfile', '1');
295
-		$this->assertEquals("Warning [512]: test err in testfile on line 1\n", $schedulersJob->errors );
295
+		$this->assertEquals("Warning [512]: test err in testfile on line 1\n", $schedulersJob->errors);
296 296
 		
297 297
 		$schedulersJob->errors = "";
298 298
 		$schedulersJob->errorHandler(E_ERROR, "test err", 'testfile', '1');
299
-		$this->assertEquals("Fatal Error [1]: test err in testfile on line 1\n", $schedulersJob->errors );
299
+		$this->assertEquals("Fatal Error [1]: test err in testfile on line 1\n", $schedulersJob->errors);
300 300
 		
301 301
 		
302 302
 		$schedulersJob->errors = "";
303 303
 		$schedulersJob->errorHandler(E_PARSE, "test err", 'testfile', '1');
304
-		$this->assertEquals("Parse Error [4]: test err in testfile on line 1\n", $schedulersJob->errors );
304
+		$this->assertEquals("Parse Error [4]: test err in testfile on line 1\n", $schedulersJob->errors);
305 305
 		
306 306
 		
307 307
 		$schedulersJob->errors = "";
308 308
 		$schedulersJob->errorHandler(E_RECOVERABLE_ERROR, "test err", 'testfile', '1');
309
-		$this->assertEquals("Recoverable Error [4096]: test err in testfile on line 1\n", $schedulersJob->errors );
309
+		$this->assertEquals("Recoverable Error [4096]: test err in testfile on line 1\n", $schedulersJob->errors);
310 310
 		
311 311
 	}
312 312
 
Please login to merge, or discard this patch.
tests/tests/modules/AOP_Case_Updates/AOP_Case_UpdatesTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@  discard block
 block discarded – undo
3 3
 class AOP_Case_UpdatesTest extends PHPUnit_Framework_TestCase {
4 4
 
5 5
 	
6
-    public function testAOP_Case_Updates(){
6
+    public function testAOP_Case_Updates() {
7 7
  
8 8
     	//execute the contructor and check for the Object type and  attributes
9 9
     	$aopCaseUpdates = new AOP_Case_Updates();
10
-    	$this->assertInstanceOf('AOP_Case_Updates',$aopCaseUpdates);
11
-    	$this->assertInstanceOf('Basic',$aopCaseUpdates);
12
-    	$this->assertInstanceOf('SugarBean',$aopCaseUpdates);
10
+    	$this->assertInstanceOf('AOP_Case_Updates', $aopCaseUpdates);
11
+    	$this->assertInstanceOf('Basic', $aopCaseUpdates);
12
+    	$this->assertInstanceOf('SugarBean', $aopCaseUpdates);
13 13
     	
14 14
     	$this->assertAttributeEquals('AOP_Case_Updates', 'module_dir', $aopCaseUpdates);
15 15
     	$this->assertAttributeEquals('AOP_Case_Updates', 'object_name', $aopCaseUpdates);
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     	
22 22
     }
23 23
 
24
-    public function testsave(){
24
+    public function testsave() {
25 25
  
26 26
     	error_reporting(E_ERROR | E_PARSE);
27 27
     	
@@ -42,18 +42,18 @@  discard block
 block discarded – undo
42 42
     }
43 43
 
44 44
     
45
-    public function testgetCase(){
45
+    public function testgetCase() {
46 46
 
47 47
     	$aopCaseUpdates = new AOP_Case_Updates();
48 48
     	
49 49
     	//execute the method and verify that it returns a Case object
50 50
     	$result = $aopCaseUpdates->getCase();
51 51
     	
52
-    	$this->assertInstanceOf('aCase',$result);
52
+    	$this->assertInstanceOf('aCase', $result);
53 53
     	    	
54 54
     }
55 55
 
56
-    public function testgetContacts(){
56
+    public function testgetContacts() {
57 57
    
58 58
     	$aopCaseUpdates = new AOP_Case_Updates();
59 59
     	
@@ -63,39 +63,39 @@  discard block
 block discarded – undo
63 63
     	
64 64
     }
65 65
 
66
-    public function testgetUpdateContact(){
66
+    public function testgetUpdateContact() {
67 67
  
68 68
     	$aopCaseUpdates = new AOP_Case_Updates();
69 69
     	
70 70
     	//execute the method without contact_id and verify that it returns null
71 71
     	$result = $aopCaseUpdates->getUpdateContact();    	
72
-    	$this->assertEquals(Null,$result);
72
+    	$this->assertEquals(Null, $result);
73 73
     
74 74
     	
75 75
     	//execute the method without contact_id and verify that it returns false
76 76
     	$aopCaseUpdates->contact_id = 1;
77 77
     	$result = $aopCaseUpdates->getUpdateContact();
78
-    	$this->assertEquals(False,$result);
78
+    	$this->assertEquals(False, $result);
79 79
     	
80 80
     }
81 81
     
82
-    public function testgetUser(){
82
+    public function testgetUser() {
83 83
     	
84 84
     	$aopCaseUpdates = new AOP_Case_Updates();
85 85
     	
86 86
     	//execute the method and verify that it returns an instance of User
87 87
     	$result = $aopCaseUpdates->getUser();
88
-    	$this->assertInstanceOf('User',$result);
88
+    	$this->assertInstanceOf('User', $result);
89 89
     	
90 90
     }
91 91
     
92
-    public function testgetUpdateUser(){
92
+    public function testgetUpdateUser() {
93 93
 
94 94
     	$aopCaseUpdates = new AOP_Case_Updates();
95 95
     	
96 96
     	//execute the method and verify that it returns an instance of User
97 97
     	$result = $aopCaseUpdates->getUpdateUser();
98
-    	$this->assertInstanceOf('User',$result);    	
98
+    	$this->assertInstanceOf('User', $result);    	
99 99
     
100 100
     }
101 101
 
Please login to merge, or discard this patch.
tests/tests/modules/jjwg_Markers/jjwg_MarkersTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
     	//execute the contructor and check for the Object type and  attributes
10 10
     	$jjwgMarkers = new jjwg_Markers();
11 11
     	
12
-    	$this->assertInstanceOf('jjwg_Markers',$jjwgMarkers);
13
-    	$this->assertInstanceOf('Basic',$jjwgMarkers);
14
-    	$this->assertInstanceOf('SugarBean',$jjwgMarkers);
12
+    	$this->assertInstanceOf('jjwg_Markers', $jjwgMarkers);
13
+    	$this->assertInstanceOf('Basic', $jjwgMarkers);
14
+    	$this->assertInstanceOf('SugarBean', $jjwgMarkers);
15 15
     	 
16 16
     	$this->assertAttributeEquals('jjwg_Markers', 'module_dir', $jjwgMarkers);
17 17
     	$this->assertAttributeEquals('jjwg_Markers', 'object_name', $jjwgMarkers);
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     	
33 33
     	$jjwgMarkers->configuration();
34 34
     	 
35
-    	$this->assertInstanceOf('jjwg_Maps',$jjwgMarkers->jjwg_Maps);
35
+    	$this->assertInstanceOf('jjwg_Maps', $jjwgMarkers->jjwg_Maps);
36 36
     	$this->assertTrue(is_array($jjwgMarkers->settings));
37
-    	$this->assertGreaterThan(0,count($jjwgMarkers->settings));
37
+    	$this->assertGreaterThan(0, count($jjwgMarkers->settings));
38 38
     	
39 39
     }
40 40
 
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
     	$jjwgMarkers = new jjwg_Markers();
65 65
 
66 66
     	//test with invalid values
67
-    	$this->assertEquals(false, $jjwgMarkers->is_valid_lng('') );
68
-    	$this->assertEquals(false, $jjwgMarkers->is_valid_lng(181) );
69
-    	$this->assertEquals(false, $jjwgMarkers->is_valid_lng(-181) );
67
+    	$this->assertEquals(false, $jjwgMarkers->is_valid_lng(''));
68
+    	$this->assertEquals(false, $jjwgMarkers->is_valid_lng(181));
69
+    	$this->assertEquals(false, $jjwgMarkers->is_valid_lng(-181));
70 70
     	 
71 71
     	//test with valid values
72
-    	$this->assertEquals(true, $jjwgMarkers->is_valid_lng(180) );
73
-    	$this->assertEquals(true, $jjwgMarkers->is_valid_lng(-180) );
72
+    	$this->assertEquals(true, $jjwgMarkers->is_valid_lng(180));
73
+    	$this->assertEquals(true, $jjwgMarkers->is_valid_lng(-180));
74 74
     	
75 75
     }
76 76
 
@@ -80,14 +80,14 @@  discard block
 block discarded – undo
80 80
     	$jjwgMarkers = new jjwg_Markers();
81 81
     	
82 82
     	//test with invalid values
83
-    	$this->assertEquals(false, $jjwgMarkers->is_valid_lat('') );
84
-    	$this->assertEquals(false, $jjwgMarkers->is_valid_lat(91) );
85
-    	$this->assertEquals(false, $jjwgMarkers->is_valid_lat(-91) );
83
+    	$this->assertEquals(false, $jjwgMarkers->is_valid_lat(''));
84
+    	$this->assertEquals(false, $jjwgMarkers->is_valid_lat(91));
85
+    	$this->assertEquals(false, $jjwgMarkers->is_valid_lat(-91));
86 86
     	 
87 87
     	
88 88
     	//test with valid values
89
-    	$this->assertEquals(true, $jjwgMarkers->is_valid_lat(90) );
90
-    	$this->assertEquals(true, $jjwgMarkers->is_valid_lat(-90) );
89
+    	$this->assertEquals(true, $jjwgMarkers->is_valid_lat(90));
90
+    	$this->assertEquals(true, $jjwgMarkers->is_valid_lat(-90));
91 91
     
92 92
     }
93 93
 
Please login to merge, or discard this patch.
tests/tests/modules/AOW_Processed/AOW_ProcessedTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-class AOW_ProcessedTest extends PHPUnit_Framework_TestCase  {
3
+class AOW_ProcessedTest extends PHPUnit_Framework_TestCase {
4 4
 
5 5
 	
6
-	public function testAOW_Processed(){	
6
+	public function testAOW_Processed() {	
7 7
 
8 8
 		//execute the contructor and check for the Object type and  attributes
9 9
 		$aowProcessed = new AOW_Processed();
10
-		$this->assertInstanceOf('AOW_Processed',$aowProcessed);
11
-		$this->assertInstanceOf('Basic',$aowProcessed);
12
-		$this->assertInstanceOf('SugarBean',$aowProcessed);
10
+		$this->assertInstanceOf('AOW_Processed', $aowProcessed);
11
+		$this->assertInstanceOf('Basic', $aowProcessed);
12
+		$this->assertInstanceOf('SugarBean', $aowProcessed);
13 13
 			
14 14
 		$this->assertAttributeEquals('AOW_Processed', 'module_dir', $aowProcessed);
15 15
 		$this->assertAttributeEquals('AOW_Processed', 'object_name', $aowProcessed);
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 		
21 21
 	}
22 22
 	
23
-	public function testbean_implements(){
23
+	public function testbean_implements() {
24 24
 
25 25
 		error_reporting(E_ERROR | E_PARSE);
26 26
 		
Please login to merge, or discard this patch.
tests/tests/modules/jjwg_Maps/jjwg_MapsTest.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-class jjwg_MapsTest extends PHPUnit_Framework_TestCase{
3
+class jjwg_MapsTest extends PHPUnit_Framework_TestCase {
4 4
 
5 5
 
6 6
 
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
     	//execute the contructor and check for the Object type and  attributes
10 10
     	$jjwgMaps = new jjwg_Maps();
11 11
     	 
12
-    	$this->assertInstanceOf('jjwg_Maps',$jjwgMaps);
13
-    	$this->assertInstanceOf('Basic',$jjwgMaps);
14
-    	$this->assertInstanceOf('SugarBean',$jjwgMaps);
12
+    	$this->assertInstanceOf('jjwg_Maps', $jjwgMaps);
13
+    	$this->assertInstanceOf('Basic', $jjwgMaps);
14
+    	$this->assertInstanceOf('SugarBean', $jjwgMaps);
15 15
     	
16 16
     	$this->assertAttributeEquals('jjwg_Maps', 'module_dir', $jjwgMaps);
17 17
     	$this->assertAttributeEquals('jjwg_Maps', 'object_name', $jjwgMaps);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     	
103 103
     	$result = $jjwgMaps->updateRelatedMeetingsGeocodeInfo($bean);
104 104
     	$this->assertSame(null, $result);
105
-    	$this->assertInstanceOf('jjwg_Address_Cache',$jjwgMaps->jjwg_Address_Cache);
105
+    	$this->assertInstanceOf('jjwg_Address_Cache', $jjwgMaps->jjwg_Address_Cache);
106 106
     	
107 107
     }
108 108
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     	
194 194
     	//test with invalid geocode bean
195 195
     	$result = $jjwgMaps->getGeocodeAddressesResult("accounts");
196
-    	$this->assertInstanceOf('mysqli_result',$result);
196
+    	$this->assertInstanceOf('mysqli_result', $result);
197 197
     	
198 198
     }
199 199
 
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     	$jjwgMaps = new jjwg_Maps();
204 204
     	
205 205
     	//test with invalid value
206
-    	$expected = array (
206
+    	$expected = array(
207 207
     			'address' => '',
208 208
     			'status' => 'ZERO_RESULTS',
209 209
     			'lat' => NULL,
@@ -211,52 +211,52 @@  discard block
 block discarded – undo
211 211
     	);
212 212
     	
213 213
     	$actual = $jjwgMaps->getGoogleMapsGeocode("");
214
-    	$this->assertSame($expected,$actual);
214
+    	$this->assertSame($expected, $actual);
215 215
 
216 216
     	
217 217
     	//test with valid value
218
-    	$expected = array (
218
+    	$expected = array(
219 219
     			'address' => 'washington D.C',
220 220
     			'status' => 'OK',
221 221
     			'lat' => 38.90719229999999839719748706556856632232666015625,
222 222
     			'lng' => -77.0368706999999943718648864887654781341552734375,
223 223
     	);
224 224
     	$actual = $jjwgMaps->getGoogleMapsGeocode("washington D.C");
225
-    	$this->assertSame($expected,$actual);
225
+    	$this->assertSame($expected, $actual);
226 226
   
227 227
     	
228 228
     	//test with valid value and full array true
229 229
     	$expected =	
230
-    		array (
230
+    		array(
231 231
     			'results' =>
232
-    			array (
233
-    					array (
232
+    			array(
233
+    					array(
234 234
     							'address_components' =>
235
-    							array (
236
-    									array ( 'long_name' => 'Washington', 'short_name' => 'D.C.', 'types' =>  array ( 'locality', 'political', ),  ),
237
-    									array ( 'long_name' => 'District of Columbia', 'short_name' => 'District of Columbia', 'types' =>  array ( 'administrative_area_level_2','political', ), ),
238
-    									array ( 'long_name' => 'District of Columbia', 'short_name' => 'DC', 'types' =>  array ( 'administrative_area_level_1', 'political', ),
235
+    							array(
236
+    									array('long_name' => 'Washington', 'short_name' => 'D.C.', 'types' =>  array('locality', 'political',),),
237
+    									array('long_name' => 'District of Columbia', 'short_name' => 'District of Columbia', 'types' =>  array('administrative_area_level_2', 'political',),),
238
+    									array('long_name' => 'District of Columbia', 'short_name' => 'DC', 'types' =>  array('administrative_area_level_1', 'political',),
239 239
     									),
240
-    									array ( 'long_name' => 'United States', 'short_name' => 'US', 'types' => array ( 'country', 'political', ),  ),
240
+    									array('long_name' => 'United States', 'short_name' => 'US', 'types' => array('country', 'political',),),
241 241
     							),
242 242
     							'formatted_address' => 'Washington, DC, USA',
243 243
     							'geometry' =>
244
-    							array (
245
-    									'bounds' => array ( 'northeast' =>  array ( 'lat' => 38.9955479999999994333848007954657077789306640625, 'lng' => -76.909392999999994344761944375932216644287109375, ), 'southwest' =>  array ( 'lat' => 38.8031495000000035133780329488217830657958984375, 'lng' => -77.1197399999999930741978459991514682769775390625,  ), ),
246
-    									'location' => array ( 'lat' => 38.90719229999999839719748706556856632232666015625, 'lng' => -77.0368706999999943718648864887654781341552734375,),
244
+    							array(
245
+    									'bounds' => array('northeast' =>  array('lat' => 38.9955479999999994333848007954657077789306640625, 'lng' => -76.909392999999994344761944375932216644287109375,), 'southwest' =>  array('lat' => 38.8031495000000035133780329488217830657958984375, 'lng' => -77.1197399999999930741978459991514682769775390625,),),
246
+    									'location' => array('lat' => 38.90719229999999839719748706556856632232666015625, 'lng' => -77.0368706999999943718648864887654781341552734375,),
247 247
     									'location_type' => 'APPROXIMATE',
248
-    									'viewport' => array ( 'northeast' => array ( 'lat' => 38.9955479999999994333848007954657077789306640625, 'lng' => -76.909392999999994344761944375932216644287109375,), 'southwest' => array ( 'lat' => 38.8031495000000035133780329488217830657958984375, 'lng' => -77.1197399999999930741978459991514682769775390625,), ),
248
+    									'viewport' => array('northeast' => array('lat' => 38.9955479999999994333848007954657077789306640625, 'lng' => -76.909392999999994344761944375932216644287109375,), 'southwest' => array('lat' => 38.8031495000000035133780329488217830657958984375, 'lng' => -77.1197399999999930741978459991514682769775390625,),),
249 249
     							),
250 250
     							'place_id' => 'ChIJW-T2Wt7Gt4kRKl2I1CJFUsI',
251
-    							'types' => array ('locality', 'political'),
251
+    							'types' => array('locality', 'political'),
252 252
     					),
253 253
     			),
254 254
     			'status' => 'OK',
255 255
     	);
256 256
     	
257
-    	$actual = $jjwgMaps->getGoogleMapsGeocode("washington D.C",true);
257
+    	$actual = $jjwgMaps->getGoogleMapsGeocode("washington D.C", true);
258 258
     		
259
-    	$this->assertSame($expected['results']['geometry'],$actual['results']['geometry']);
259
+    	$this->assertSame($expected['results']['geometry'], $actual['results']['geometry']);
260 260
     	//$this->assertSame($expected,$actual);
261 261
     	
262 262
     }
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     	
270 270
     	//test for Account Object type 
271 271
     	$address = array('id'=>1, 'billing_address_street'=>"addr 1", 'billing_address_city'=>"addr 2", 'billing_address_state'=>"addr 3", 'billing_address_postalcode'=>"addr 4", 'billing_address_country'=>"addr 5");
272
-    	$result = $jjwgMaps->defineMapsAddress('Account',$address);
272
+    	$result = $jjwgMaps->defineMapsAddress('Account', $address);
273 273
     	//var_dump($result);
274 274
     	$this->assertEquals(array('address' => "addr 1, addr 2, addr 3, addr 4, addr 5"), $result);
275 275
     	
@@ -277,41 +277,41 @@  discard block
 block discarded – undo
277 277
     	
278 278
     	//test for Contact Object type
279 279
     	$address = array('id'=>1, 'primary_address_street'=>"addr 1", 'primary_address_city'=>"addr 2", 'primary_address_state'=>"addr 3", 'primary_address_postalcode'=>"addr 4", 'primary_address_country'=>"addr 5");
280
-    	$result = $jjwgMaps->defineMapsAddress('Contact',$address);
280
+    	$result = $jjwgMaps->defineMapsAddress('Contact', $address);
281 281
     	$this->assertEquals(array('address' => "addr 1, addr 2, addr 3, addr 4, addr 5"), $result);
282 282
     	
283 283
     	
284 284
     	
285 285
     	//test for Leads Object type
286 286
     	$address = array('id'=>1, 'primary_address_street'=>"addr 1", 'primary_address_city'=>"addr 2", 'primary_address_state'=>"addr 3", 'primary_address_postalcode'=>"addr 4", 'primary_address_country'=>"addr 5");
287
-    	$result = $jjwgMaps->defineMapsAddress('Lead',$address);
287
+    	$result = $jjwgMaps->defineMapsAddress('Lead', $address);
288 288
     	$this->assertEquals(array('address' => "addr 1, addr 2, addr 3, addr 4, addr 5"), $result);
289 289
     	 
290 290
     	
291 291
 
292 292
     	//test for Opportunities Object type
293 293
     	$address = array('id'=>1, 'billing_address_street'=>"addr 1", 'billing_address_city'=>"addr 2", 'billing_address_state'=>"addr 3", 'billing_address_postalcode'=>"addr 4", 'billing_address_country'=>"addr 5");
294
-    	$result = $jjwgMaps->defineMapsAddress('Opportunity',$address);
294
+    	$result = $jjwgMaps->defineMapsAddress('Opportunity', $address);
295 295
     	$this->assertEquals(false, $result);
296 296
     	
297 297
  
298 298
     	
299 299
     	//test for Case Object type
300 300
     	$address = array('id'=>1, 'billing_address_street'=>"addr 1", 'billing_address_city'=>"addr 2", 'billing_address_state'=>"addr 3", 'billing_address_postalcode'=>"addr 4", 'billing_address_country'=>"addr 5");
301
-    	$result = $jjwgMaps->defineMapsAddress('Case',$address);
301
+    	$result = $jjwgMaps->defineMapsAddress('Case', $address);
302 302
     	$this->assertEquals(false, $result);
303 303
     	
304 304
     	
305 305
     	//test for Project Object type
306 306
     	$address = array('id'=>1, 'billing_address_street'=>"addr 1", 'billing_address_city'=>"addr 2", 'billing_address_state'=>"addr 3", 'billing_address_postalcode'=>"addr 4", 'billing_address_country'=>"addr 5");
307
-    	$result = $jjwgMaps->defineMapsAddress('Project',$address);
307
+    	$result = $jjwgMaps->defineMapsAddress('Project', $address);
308 308
     	$this->assertEquals(false, $result);
309 309
     	 
310 310
     	
311 311
 
312 312
     	//test for Project Meetings type
313 313
     	$address = array('id'=>1, 'billing_address_street'=>"addr 1", 'billing_address_city'=>"addr 2", 'billing_address_state'=>"addr 3", 'billing_address_postalcode'=>"addr 4", 'billing_address_country'=>"addr 5");
314
-    	$result = $jjwgMaps->defineMapsAddress('Meeting',$address);
314
+    	$result = $jjwgMaps->defineMapsAddress('Meeting', $address);
315 315
     	$this->assertEquals(false, $result);
316 316
     	 
317 317
     }
@@ -328,31 +328,31 @@  discard block
 block discarded – undo
328 328
     	
329 329
     	//test for type billing  
330 330
     	$address = array('billing_address_street'=>"addr 1", 'billing_address_city'=>"addr 2", 'billing_address_state'=>"addr 3", 'billing_address_postalcode'=>"addr 4", 'billing_address_country'=>"addr 5");
331
-    	$result = $jjwgMaps->defineMapsFormattedAddress($address,'billing');
331
+    	$result = $jjwgMaps->defineMapsFormattedAddress($address, 'billing');
332 332
     	$this->assertEquals("addr 1, addr 2, addr 3, addr 4, addr 5", $result);
333 333
 
334 334
     	
335 335
     	//test for type shipping    	
336 336
     	$address = array('shipping_address_street'=>"addr 1", 'shipping_address_city'=>"addr 2", 'shipping_address_state'=>"addr 3", 'shipping_address_postalcode'=>"addr 4", 'shipping_address_country'=>"addr 5");
337
-    	$result = $jjwgMaps->defineMapsFormattedAddress($address,'shipping');
337
+    	$result = $jjwgMaps->defineMapsFormattedAddress($address, 'shipping');
338 338
     	$this->assertEquals("addr 1, addr 2, addr 3, addr 4, addr 5", $result);
339 339
     	 
340 340
     	
341 341
     	//test for type primary
342 342
     	$address = array('primary_address_street'=>"addr 1", 'primary_address_city'=>"addr 2", 'primary_address_state'=>"addr 3", 'primary_address_postalcode'=>"addr 4", 'primary_address_country'=>"addr 5");
343
-    	$result = $jjwgMaps->defineMapsFormattedAddress($address,'primary');
343
+    	$result = $jjwgMaps->defineMapsFormattedAddress($address, 'primary');
344 344
     	$this->assertEquals("addr 1, addr 2, addr 3, addr 4, addr 5", $result);
345 345
     	
346 346
     	
347 347
     	//test for type alt
348 348
     	$address = array('alt_address_street'=>"addr 1", 'alt_address_city'=>"addr 2", 'alt_address_state'=>"addr 3", 'alt_address_postalcode'=>"addr 4", 'alt_address_country'=>"addr 5");
349
-    	$result = $jjwgMaps->defineMapsFormattedAddress($address,'alt');
349
+    	$result = $jjwgMaps->defineMapsFormattedAddress($address, 'alt');
350 350
     	$this->assertEquals("addr 1, addr 2, addr 3, addr 4, addr 5", $result);
351 351
     	
352 352
     	
353 353
     	//test for type address
354 354
     	$address = array('address_street'=>"addr 1", 'address_city'=>"addr 2", 'address_state'=>"addr 3", 'address_postalcode'=>"addr 4");
355
-    	$result = $jjwgMaps->defineMapsFormattedAddress($address,'address');
355
+    	$result = $jjwgMaps->defineMapsFormattedAddress($address, 'address');
356 356
     	$this->assertEquals("addr 1, addr 2, addr 3, addr 4", $result);
357 357
 
358 358
     	
@@ -364,13 +364,13 @@  discard block
 block discarded – undo
364 364
     	$jjwgMaps = new jjwg_Maps();
365 365
     	
366 366
     	//test with invalid values
367
-    	$this->assertEquals(false, $jjwgMaps->is_valid_lng('') );
368
-    	$this->assertEquals(false, $jjwgMaps->is_valid_lng(181) );
369
-    	$this->assertEquals(false, $jjwgMaps->is_valid_lng(-181) );
367
+    	$this->assertEquals(false, $jjwgMaps->is_valid_lng(''));
368
+    	$this->assertEquals(false, $jjwgMaps->is_valid_lng(181));
369
+    	$this->assertEquals(false, $jjwgMaps->is_valid_lng(-181));
370 370
     	 
371 371
     	//test with valid values
372
-    	$this->assertEquals(true, $jjwgMaps->is_valid_lng(180) );
373
-    	$this->assertEquals(true, $jjwgMaps->is_valid_lng(-180) );
372
+    	$this->assertEquals(true, $jjwgMaps->is_valid_lng(180));
373
+    	$this->assertEquals(true, $jjwgMaps->is_valid_lng(-180));
374 374
 
375 375
     }
376 376
 
@@ -380,13 +380,13 @@  discard block
 block discarded – undo
380 380
     	$jjwgMaps = new jjwg_Maps();
381 381
     	
382 382
     	//test with invalid values
383
-    	$this->assertEquals(false, $jjwgMaps->is_valid_lat('') );
384
-    	$this->assertEquals(false, $jjwgMaps->is_valid_lat(91) );
385
-    	$this->assertEquals(false, $jjwgMaps->is_valid_lat(-91) );
383
+    	$this->assertEquals(false, $jjwgMaps->is_valid_lat(''));
384
+    	$this->assertEquals(false, $jjwgMaps->is_valid_lat(91));
385
+    	$this->assertEquals(false, $jjwgMaps->is_valid_lat(-91));
386 386
     	 
387 387
     	//test with valid values
388
-    	$this->assertEquals(true, $jjwgMaps->is_valid_lat(90) );
389
-    	$this->assertEquals(true, $jjwgMaps->is_valid_lat(-90) );
388
+    	$this->assertEquals(true, $jjwgMaps->is_valid_lat(90));
389
+    	$this->assertEquals(true, $jjwgMaps->is_valid_lat(-90));
390 390
     	
391 391
     }
392 392
 
Please login to merge, or discard this patch.
tests/tests/modules/MergeRecords/MergeRecordTest.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@  discard block
 block discarded – undo
8 8
     	//execute the contructor and check for the Object type and  attributes
9 9
     	$mergeRecord = new MergeRecord();
10 10
     		
11
-    	$this->assertInstanceOf('MergeRecord',$mergeRecord);
12
-    	$this->assertInstanceOf('SugarBean',$mergeRecord);
11
+    	$this->assertInstanceOf('MergeRecord', $mergeRecord);
12
+    	$this->assertInstanceOf('SugarBean', $mergeRecord);
13 13
     	
14 14
     	$this->assertAttributeEquals('MergeRecords', 'module_dir', $mergeRecord);
15 15
     	$this->assertAttributeEquals('MergeRecord', 'object_name', $mergeRecord);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     	$this->assertAttributeEquals('User', 'merge_bean_class', $mergeRecord);
74 74
     	$this->assertAttributeEquals('modules/Users/User.php', 'merge_bean_file_path', $mergeRecord);
75 75
 
76
-    	$this->assertInstanceOf('User',$mergeRecord->merge_bean);
76
+    	$this->assertInstanceOf('User', $mergeRecord->merge_bean);
77 77
     	
78 78
     
79 79
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     	$this->assertAttributeEquals('User', 'merge_bean_class2', $mergeRecord);
104 104
     	$this->assertAttributeEquals('modules/Users/User.php', 'merge_bean_file_path2', $mergeRecord);
105 105
     	
106
-    	$this->assertInstanceOf('User',$mergeRecord->merge_bean2);
106
+    	$this->assertInstanceOf('User', $mergeRecord->merge_bean2);
107 107
     	 
108 108
     }
109 109
     
@@ -167,12 +167,12 @@  discard block
 block discarded – undo
167 167
     	
168 168
     	
169 169
     	//test without setting name
170
-    	$this->assertEquals(Null,$mergeRecord->get_summary_text());
170
+    	$this->assertEquals(Null, $mergeRecord->get_summary_text());
171 171
 
172 172
     	
173 173
     	//test with name set
174 174
     	$mergeRecord->merge_bean->name = "test";
175
-    	$this->assertEquals('test',$mergeRecord->get_summary_text());
175
+    	$this->assertEquals('test', $mergeRecord->get_summary_text());
176 176
     
177 177
     }
178 178
 
@@ -203,13 +203,13 @@  discard block
 block discarded – undo
203 203
     	//test with string
204 204
     	$expected = "contacts.last_name like 'test%' or contacts.first_name like 'test%' or accounts.name like 'test%' or contacts.assistant like 'test%' or ea.email_address like 'test%'";
205 205
     	$actual = $mergeRecord->build_generic_where_clause('test');
206
-    	$this->assertSame($expected,$actual);
206
+    	$this->assertSame($expected, $actual);
207 207
     	
208 208
     	
209 209
     	//test with number
210 210
     	$expected = "contacts.last_name like '1%' or contacts.first_name like '1%' or accounts.name like '1%' or contacts.assistant like '1%' or ea.email_address like '1%' or contacts.phone_home like '%1%' or contacts.phone_mobile like '%1%' or contacts.phone_work like '%1%' or contacts.phone_other like '%1%' or contacts.phone_fax like '%1%' or contacts.assistant_phone like '%1%'";
211 211
     	$actual = $mergeRecord->build_generic_where_clause(1);
212
-    	$this->assertSame($expected,$actual);
212
+    	$this->assertSame($expected, $actual);
213 213
     	
214 214
     }
215 215
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     	
225 225
     }
226 226
     
227
-    public function testACLAccess(){
227
+    public function testACLAccess() {
228 228
 
229 229
     	$mergeRecord = new MergeRecord();
230 230
     	
@@ -235,10 +235,10 @@  discard block
 block discarded – undo
235 235
     	//test with merge bean loaded
236 236
     	$mergeRecord->load_merge_bean("Meetings");
237 237
     	
238
-    	$this->assertEquals(true,$mergeRecord->ACLAccess('edit'));
239
-    	$this->assertEquals(true,$mergeRecord->ACLAccess('save'));
240
-    	$this->assertEquals(true,$mergeRecord->ACLAccess('editview'));
241
-    	$this->assertEquals(true,$mergeRecord->ACLAccess('delete'));
238
+    	$this->assertEquals(true, $mergeRecord->ACLAccess('edit'));
239
+    	$this->assertEquals(true, $mergeRecord->ACLAccess('save'));
240
+    	$this->assertEquals(true, $mergeRecord->ACLAccess('editview'));
241
+    	$this->assertEquals(true, $mergeRecord->ACLAccess('delete'));
242 242
     	
243 243
     }
244 244
     
@@ -254,12 +254,12 @@  discard block
 block discarded – undo
254 254
 
255 255
     	$mergeRecord->load_merge_bean("Meetings");
256 256
     	
257
-    	$expected = array (
258
-						  'id' => array ( 'name' => 'id', 'vname' => 'LBL_ID', 'type' => 'id', 'required' => true, 'reportable' => true, 'comment' => 'Unique identifier', 'inline_edit' => false, 'value' => '1', 'search_type' => 'Exact'),
259
-						  'name' => array ( 'name' => 'name','vname' => 'LBL_SUBJECT','required' => true, 'type' => 'name', 'dbType' => 'varchar', 'unified_search' => true, 'full_text_search' => array ('boost' => 3), 'len' => '50','comment' => 'Meeting name', 'importable' => 'required', 'value' => 'test', 'search_type' => 'Exact' )
257
+    	$expected = array(
258
+						  'id' => array('name' => 'id', 'vname' => 'LBL_ID', 'type' => 'id', 'required' => true, 'reportable' => true, 'comment' => 'Unique identifier', 'inline_edit' => false, 'value' => '1', 'search_type' => 'Exact'),
259
+						  'name' => array('name' => 'name', 'vname' => 'LBL_SUBJECT', 'required' => true, 'type' => 'name', 'dbType' => 'varchar', 'unified_search' => true, 'full_text_search' => array('boost' => 3), 'len' => '50', 'comment' => 'Meeting name', 'importable' => 'required', 'value' => 'test', 'search_type' => 'Exact')
260 260
 						);
261 261
     	
262
-    	$mergeRecord->populate_search_params(array('nameSearchField'=>'test','idSearchField'=>'1'));
262
+    	$mergeRecord->populate_search_params(array('nameSearchField'=>'test', 'idSearchField'=>'1'));
263 263
     	
264 264
     	$this->assertSame($expected, $mergeRecord->field_search_params);
265 265
     	
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     	 
283 283
     	$expected = "<input type='hidden' name='idSearchField' value='1' />\n<input type='hidden' name='idSearchType' value='' />\n<input type='hidden' name='nameSearchField' value='test' />\n<input type='hidden' name='nameSearchType' value='' />\n";
284 284
     	 
285
-    	$result = $mergeRecord->get_inputs_for_search_params(array('nameSearchField'=>'test','idSearchField'=>'1'));
285
+    	$result = $mergeRecord->get_inputs_for_search_params(array('nameSearchField'=>'test', 'idSearchField'=>'1'));
286 286
     	     	
287 287
     	$this->assertSame($expected, $result);
288 288
 
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
     	$mergeRecord = new MergeRecord();
331 331
     	
332 332
     	$mergeRecord->load_merge_bean("Contacts");
333
-    	$mergeRecord->populate_search_params(array('nameSearchField'=>'test','idSearchField'=>'1'));
333
+    	$mergeRecord->populate_search_params(array('nameSearchField'=>'test', 'idSearchField'=>'1'));
334 334
 
335
-    	$expected = array( "contacts.id='1'",  "contacts.name='test'", "contacts.id !=''" );
335
+    	$expected = array("contacts.id='1'", "contacts.name='test'", "contacts.id !=''");
336 336
 
337 337
     	$actual = $mergeRecord->create_where_statement();
338 338
     	
339
-    	$this->assertSame( $expected, $actual);
339
+    	$this->assertSame($expected, $actual);
340 340
     	
341 341
     }
342 342
 
@@ -345,12 +345,12 @@  discard block
 block discarded – undo
345 345
 
346 346
     	$mergeRecord = new MergeRecord();
347 347
     	
348
-    	$clauses = array( "contacts.id='1'",  "contacts.name='test'", "contacts.id !=''" );
348
+    	$clauses = array("contacts.id='1'", "contacts.name='test'", "contacts.id !=''");
349 349
     	$expected = "contacts.id='1' AND contacts.name='test' AND contacts.id !=''";
350 350
     	
351 351
     	$actual = $mergeRecord->generate_where_statement($clauses);
352 352
     	
353
-    	$this->assertSame( $expected, $actual);
353
+    	$this->assertSame($expected, $actual);
354 354
     	
355 355
     	//error_reporting(E_ALL);
356 356
 	}
Please login to merge, or discard this patch.