Completed
Push — CI ( ee6bd7...0f01dd )
by Adam
22:32
created
tests/tests/modules/Audit/AuditTest.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@  discard block
 block discarded – undo
38 38
     	try {
39 39
     		$audit->create_export_query('', '');
40 40
     		$this->assertTrue(true);
41
-    	}
42
-    	catch (Exception $e) {
41
+    	} catch (Exception $e) {
43 42
     		$this->fail();
44 43
     	}
45 44
     	
@@ -54,8 +53,7 @@  discard block
 block discarded – undo
54 53
 		try {
55 54
 			$audit->fill_in_additional_list_fields();
56 55
 			$this->assertTrue(true);
57
-		}
58
-		catch (Exception $e) {
56
+		} catch (Exception $e) {
59 57
 			$this->fail();
60 58
 		}
61 59
 		 
@@ -71,8 +69,7 @@  discard block
 block discarded – undo
71 69
 		try {
72 70
 			$audit->fill_in_additional_detail_fields();
73 71
 			$this->assertTrue(true);
74
-		}
75
-		catch (Exception $e) {
72
+		} catch (Exception $e) {
76 73
 			$this->fail();
77 74
 		}
78 75
 			
@@ -87,8 +84,7 @@  discard block
 block discarded – undo
87 84
 		try {
88 85
 			$audit->fill_in_additional_parent_fields();
89 86
 			$this->assertTrue(true);
90
-		}
91
-		catch (Exception $e) {
87
+		} catch (Exception $e) {
92 88
 			$this->fail();
93 89
 		}
94 90
 			
@@ -104,8 +100,7 @@  discard block
 block discarded – undo
104 100
 		try {
105 101
 			$audit->get_list_view_data();
106 102
 			$this->assertTrue(true);
107
-		}
108
-		catch (Exception $e) {
103
+		} catch (Exception $e) {
109 104
 			$this->fail();
110 105
 		}
111 106
 			
@@ -122,8 +117,7 @@  discard block
 block discarded – undo
122 117
 		try {
123 118
 			$audit->get_audit_link();
124 119
 			$this->assertTrue(true);
125
-		}
126
-		catch (Exception $e) {
120
+		} catch (Exception $e) {
127 121
 			$this->fail();
128 122
 		}
129 123
 			
Please login to merge, or discard this patch.
tests/tests/modules/Emails/EmailTest.php 1 patch
Braces   +6 added lines, -11 removed lines patch added patch discarded remove patch
@@ -903,7 +903,7 @@  discard block
 block discarded – undo
903 903
 		foreach($expected as $expectedKey => $expectedVal){
904 904
             if($expectedKey == 'CREATE_RELATED'){
905 905
                 $this->assertRegExp($expected[$expectedKey],$actual[$expectedKey]);
906
-            }else {
906
+            } else {
907 907
                 $this->assertSame($expected[$expectedKey], $actual[$expectedKey]);
908 908
             }
909 909
         }
@@ -1057,8 +1057,7 @@  discard block
 block discarded – undo
1057 1057
 		try {
1058 1058
 			$email->fillPrimaryParentFields();
1059 1059
 			$this->assertTrue(true);
1060
-		}
1061
-		catch (Exception $e) {
1060
+		} catch (Exception $e) {
1062 1061
 			$this->fail();
1063 1062
 		}
1064 1063
 		
@@ -1076,8 +1075,7 @@  discard block
 block discarded – undo
1076 1075
 		try {
1077 1076
 			$email->cid2Link("1", "image/png");
1078 1077
 			$this->assertTrue(true);
1079
-		}
1080
-		catch (Exception $e) {
1078
+		} catch (Exception $e) {
1081 1079
 			$this->fail();
1082 1080
 		}
1083 1081
 		
@@ -1096,8 +1094,7 @@  discard block
 block discarded – undo
1096 1094
 		try {
1097 1095
 			$email->cids2Links();
1098 1096
 			$this->assertTrue(true);
1099
-		}
1100
-		catch (Exception $e) {
1097
+		} catch (Exception $e) {
1101 1098
 			$this->fail();
1102 1099
 		}
1103 1100
 		
@@ -1112,8 +1109,7 @@  discard block
 block discarded – undo
1112 1109
     	try {
1113 1110
     		$email->setFieldNullable("description");
1114 1111
     		$this->assertTrue(true);
1115
-    	}
1116
-    	catch (Exception $e) {
1112
+    	} catch (Exception $e) {
1117 1113
     		$this->fail();
1118 1114
     	}
1119 1115
     	
@@ -1129,8 +1125,7 @@  discard block
 block discarded – undo
1129 1125
     	try {
1130 1126
     		$email->revertFieldNullable("description");
1131 1127
     		$this->assertTrue(true);
1132
-    	}
1133
-    	catch (Exception $e) {
1128
+    	} catch (Exception $e) {
1134 1129
     		$this->fail();
1135 1130
     	}
1136 1131
     	 
Please login to merge, or discard this patch.
tests/tests/modules/AOR_Charts/AOR_ChartTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
     	try {
43 43
     		$result = $aorChart->save_lines($post, $bean, $postKey);
44 44
     		$this->assertTrue(true);
45
-    	}
46
-    	catch (Exception $e) {
45
+    	} catch (Exception $e) {
47 46
     		$this->fail();
48 47
     	}
49 48
     	
Please login to merge, or discard this patch.
tests/tests/modules/Relationships/RelationshipTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -94,8 +94,7 @@  discard block
 block discarded – undo
94 94
 		try {
95 95
 			Relationship::delete("test_test", $db);
96 96
 			$this->assertTrue(true);
97
-		}
98
-		catch (Exception $e) {
97
+		} catch (Exception $e) {
99 98
 			$this->fail();
100 99
 		}
101 100
 		
@@ -232,8 +231,7 @@  discard block
 block discarded – undo
232 231
 		try {
233 232
 			$relationship->build_relationship_cache();
234 233
 			$this->assertTrue(true);
235
-		}
236
-		catch (Exception $e) {
234
+		} catch (Exception $e) {
237 235
 			$this->fail();
238 236
 		}
239 237
 		
@@ -260,8 +258,7 @@  discard block
 block discarded – undo
260 258
 		try {
261 259
 			Relationship::delete_cache();
262 260
 			$this->assertTrue(true);
263
-		}
264
-		catch (Exception $e) {
261
+		} catch (Exception $e) {
265 262
 			$this->fail();
266 263
 		}
267 264
 		
Please login to merge, or discard this patch.
tests/tests/modules/EmailTemplates/EmailTemplateTest.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@  discard block
 block discarded – undo
73 73
 		try {
74 74
 			$emailTemplate->fill_in_additional_list_fields();
75 75
 			$this->assertTrue(true);
76
-		}
77
-		catch (Exception $e) {
76
+		} catch (Exception $e) {
78 77
 			$this->fail();
79 78
 		}
80 79
 		
@@ -109,8 +108,7 @@  discard block
 block discarded – undo
109 108
 		try {
110 109
 			$emailTemplate->fill_in_additional_parent_fields();
111 110
 			$this->assertTrue(true);
112
-		}
113
-		catch (Exception $e) {
111
+		} catch (Exception $e) {
114 112
 			$this->fail();
115 113
 		}
116 114
 		
Please login to merge, or discard this patch.
tests/tests/modules/EmailMan/EmailManTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -124,8 +124,7 @@  discard block
 block discarded – undo
124 124
 		try {
125 125
 			$emailMan->set_as_sent("[email protected]", true,null,null,'send error');
126 126
 			$this->assertTrue(true);
127
-		}
128
-		catch (Exception $e) {
127
+		} catch (Exception $e) {
129 128
 			$this->fail();
130 129
 		}
131 130
 		
@@ -135,8 +134,7 @@  discard block
 block discarded – undo
135 134
 		try {
136 135
 			$emailMan->set_as_sent("[email protected]", false,null,null,'send error');
137 136
 			$this->assertTrue(true);
138
-		}
139
-		catch (Exception $e) {
137
+		} catch (Exception $e) {
140 138
 			$this->fail();
141 139
 		}
142 140
 		
@@ -241,8 +239,7 @@  discard block
 block discarded – undo
241 239
 		try {
242 240
 			$emailMan->mark_deleted('');
243 241
 			$this->assertTrue(true);
244
-		}
245
-		catch (Exception $e) {
242
+		} catch (Exception $e) {
246 243
 			$this->fail();
247 244
 		}
248 245
 		
Please login to merge, or discard this patch.
tests/tests/modules/Contacts/ContactTest.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -154,8 +154,7 @@  discard block
 block discarded – undo
154 154
 		try {
155 155
 			$contact->load_contacts_users_relationship();
156 156
 			$this->assertTrue(true);
157
-		}
158
-		catch (Exception $e) {
157
+		} catch (Exception $e) {
159 158
 			$this->fail();
160 159
 		}
161 160
 		
@@ -254,8 +253,7 @@  discard block
 block discarded – undo
254 253
 			$contact->save_relationship_changes(true);
255 254
 			$contact->save_relationship_changes(false);
256 255
 			$this->assertTrue(true);
257
-		}
258
-		catch (Exception $e) {
256
+		} catch (Exception $e) {
259 257
 			$this->fail();
260 258
 		}
261 259
 		
@@ -289,8 +287,7 @@  discard block
 block discarded – undo
289 287
     	try {
290 288
    			$contact->process_sync_to_outlook("all");
291 289
     		$this->assertTrue(true);
292
-    	}
293
-    	catch (Exception $e) {
290
+    	} catch (Exception $e) {
294 291
     		$this->fail();
295 292
     	}
296 293
     	 
@@ -299,8 +296,7 @@  discard block
 block discarded – undo
299 296
     	try {
300 297
     		$contact->process_sync_to_outlook("1");
301 298
     		$this->assertTrue(true);
302
-    	}
303
-    	catch (Exception $e) {
299
+    	} catch (Exception $e) {
304 300
     		$this->fail();
305 301
     	}
306 302
     	 	
Please login to merge, or discard this patch.