File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -52,26 +52,6 @@ public function testGettingOneLog()
5252 $ this ->assertTrue (isset ($ logs [0 ]['url ' ]));
5353 }
5454
55- /**
56- * @group parse-logs-tests
57- */
58- public function testGettingErrorLogs ()
59- {
60- // Generate an error by requesting a non-existant password reset, to verify we have at least 1 line in our logs
61- try {
62- ParseUser::requestPasswordReset ('not_a_real_email ' );
63- } catch (ParseException $ pe ) {
64- // do nothing
65- }
66-
67- $ logs = ParseLogs::getErrorLogs (1 );
68- $ this ->assertEquals (1 , count ($ logs ));
69- $ this ->assertEquals ($ logs [0 ]['code ' ], 205 );
70- $ this ->assertEquals ($ logs [0 ]['message ' ], 'No user found with email not_a_real_email. ' );
71- $ this ->assertEquals ($ logs [0 ]['level ' ], 'error ' );
72- $ this ->assertTrue (isset ($ logs [0 ]['timestamp ' ]));
73- }
74-
7555 /**
7656 * @group parse-logs-tests
7757 */
Original file line number Diff line number Diff line change @@ -457,15 +457,6 @@ public function testPasswordReset()
457457 ParseUser::requestPasswordReset ('asdf@example.com ' );
458458 }
459459
460- public function testPasswordResetFails ()
461- {
462- $ this ->setExpectedException (
463- 'Parse\ParseException ' ,
464- 'No user found with email non_existent@example.com. '
465- );
466- ParseUser::requestPasswordReset ('non_existent@example.com ' );
467- }
468-
469460 public function testUserAssociations ()
470461 {
471462 $ child = ParseObject::create ('TestObject ' );
You can’t perform that action at this time.
0 commit comments