Completed
Push — master ( b0cac2...9ce739 )
by Ankit
03:13
created
tests/TestUser.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-    * @depends test_authRegister
55
-    *  Testing for the register with invalid email credentials
56
-    */
54
+     * @depends test_authRegister
55
+     *  Testing for the register with invalid email credentials
56
+     */
57 57
     public function test_authregisterInvalidEmail()
58 58
     {
59 59
         $output = $this->obRegister->authregister(
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-    * @depends test_authRegister
81
-    *  Testing for the register with invalid email credentials
82
-    */
80
+     * @depends test_authRegister
81
+     *  Testing for the register with invalid email credentials
82
+     */
83 83
     public function test_authregisterInvalidCredentials()
84 84
     {
85 85
         $output = $this->obRegister->authregister(
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     /**
114
-    * @depends test_authRegister
115
-    *  Testing for the login with correct credentials
116
-    */
114
+     * @depends test_authRegister
115
+     *  Testing for the login with correct credentials
116
+     */
117 117
 
118 118
     public function test_authLogin()
119 119
     {
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
     }
138 138
 
139 139
     /**
140
-    * @depends test_authRegister
141
-    *  Testing for the login with empty credentials
142
-    */
140
+     * @depends test_authRegister
141
+     *  Testing for the login with empty credentials
142
+     */
143 143
 
144 144
     public function test_authLoginEmptyValues()
145 145
     {
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
     }
166 166
 
167 167
     /**
168
-    * @depends test_authRegister
169
-    *  Testing for the login with invalid or wrong email
170
-    */
168
+     * @depends test_authRegister
169
+     *  Testing for the login with invalid or wrong email
170
+     */
171 171
 
172 172
     public function test_authLoginWrongEmail()
173 173
     {
@@ -189,9 +189,9 @@  discard block
 block discarded – undo
189 189
     }
190 190
 
191 191
     /**
192
-    * @depends test_authRegister
193
-    *  Testing for the login with invalid email credentials
194
-    */
192
+     * @depends test_authRegister
193
+     *  Testing for the login with invalid email credentials
194
+     */
195 195
     public function test_authLoginInvalidUsernameEmail()
196 196
     {
197 197
         $output = $this->obLogin->authLogin(
@@ -212,9 +212,9 @@  discard block
 block discarded – undo
212 212
     }
213 213
 
214 214
     /**
215
-    * @depends test_authRegister
216
-    *  Testing for the login with invalid password credentials
217
-    */
215
+     * @depends test_authRegister
216
+     *  Testing for the login with invalid password credentials
217
+     */
218 218
     public function test_authLoginInvalidPassword()
219 219
     {
220 220
         $output = $this->obLogin->authLogin(
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
     }
235 235
 
236 236
     /**
237
-    * @depends test_authRegister
238
-    *  Testing for the Profile::class with valid login_id
239
-    */
237
+     * @depends test_authRegister
238
+     *  Testing for the Profile::class with valid login_id
239
+     */
240 240
     public function test_getProfile()
241 241
     {
242 242
         $output = Profile::getProfile(1);
@@ -249,9 +249,9 @@  discard block
 block discarded – undo
249 249
     }
250 250
 
251 251
     /**
252
-    * @depends test_authRegister
253
-    *  Testing for the Profile::class with invalid login_id
254
-    */
252
+     * @depends test_authRegister
253
+     *  Testing for the Profile::class with invalid login_id
254
+     */
255 255
     public function test_getProfileInvalidID()
256 256
     {
257 257
         $output = Profile::getProfile(0);
@@ -259,9 +259,9 @@  discard block
 block discarded – undo
259 259
     }
260 260
 
261 261
     /**
262
-    * @depends test_authRegister
263
-    *  Testing for the User::class with valid login_id
264
-    */
262
+     * @depends test_authRegister
263
+     *  Testing for the User::class with valid login_id
264
+     */
265 265
     public function test_userDetails()
266 266
     {
267 267
         $expectedOutput = [
@@ -280,9 +280,9 @@  discard block
 block discarded – undo
280 280
     }
281 281
 
282 282
     /**
283
-    * @depends test_authRegister
284
-    *  Testing for the User::class with invalid data
285
-    */
283
+     * @depends test_authRegister
284
+     *  Testing for the User::class with invalid data
285
+     */
286 286
     public function test_userDetailsInvalidID()
287 287
     {
288 288
         $output = $this->obUser->userDetails(0, True);
@@ -290,9 +290,9 @@  discard block
 block discarded – undo
290 290
     }
291 291
 
292 292
     /**
293
-    * @depends test_authRegister
294
-    *  Testing for the Validate::class for email
295
-    */
293
+     * @depends test_authRegister
294
+     *  Testing for the Validate::class for email
295
+     */
296 296
     public function test_validateEmailInDb()
297 297
     {
298 298
         $output = $this->obValidate->validateEmailInDb('[email protected]');
@@ -300,9 +300,9 @@  discard block
 block discarded – undo
300 300
     }
301 301
 
302 302
     /**
303
-    * @depends test_authRegister
304
-    *  Testing for the Validate::class for username
305
-    */
303
+     * @depends test_authRegister
304
+     *  Testing for the Validate::class for username
305
+     */
306 306
     public function test_validateUsernameInDb()
307 307
     {
308 308
         $output = $this->obValidate->validateUsernameInDb('test');
@@ -310,9 +310,9 @@  discard block
 block discarded – undo
310 310
     }
311 311
 
312 312
     /**
313
-    * @depends test_authRegister
314
-    *  Testing for the Validate::class for non-existing username
315
-    */
313
+     * @depends test_authRegister
314
+     *  Testing for the Validate::class for non-existing username
315
+     */
316 316
     public function test_validateUsernameInDbNot()
317 317
     {
318 318
         $output = $this->obValidate->validateUsernameInDb('abc');
@@ -320,9 +320,9 @@  discard block
 block discarded – undo
320 320
     }
321 321
 
322 322
     /**
323
-    * @depends test_authRegister
324
-    *  Testing for the Validate::class for non-existing email
325
-    */
323
+     * @depends test_authRegister
324
+     *  Testing for the Validate::class for non-existing email
325
+     */
326 326
     public function test_validateEmailInDbNot()
327 327
     {
328 328
         $output = $this->obValidate->validateEmailInDb('[email protected]');
@@ -330,9 +330,9 @@  discard block
 block discarded – undo
330 330
     }
331 331
 
332 332
     /**
333
-    * @depends test_authRegister
334
-    *  Testing for the Online::class
335
-    */
333
+     * @depends test_authRegister
334
+     *  Testing for the Online::class
335
+     */
336 336
     public function test_Online()
337 337
     {
338 338
         Online::setOnlineStatus(1);
@@ -347,9 +347,9 @@  discard block
 block discarded – undo
347 347
 
348 348
 
349 349
     /**
350
-    *   @depends test_Online
351
-    *  Empty the DB
352
-    */
350
+     *   @depends test_Online
351
+     *  Empty the DB
352
+     */
353 353
     public function test_EmptyDB()
354 354
     {
355 355
         $connect = mysqli_connect(
Please login to merge, or discard this patch.